From 032696f1e5c68db5be8faa627c61eebbd9d651ff Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 20 Sep 2005 12:57:34 +0000 Subject: last inside a "do ... until ..." is bad --- perl-install/modules.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 6a9595d8e..cc8e914eb 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -72,11 +72,11 @@ sub load_raw { #- so trying hard to wait for devices to be detected my $retry = 10; sleep 1; #- TOREMOVE for compatibility with previous behaviour: wait at least 2 seconds - do { + while ($retry--) { sleep 1; last if all('/sys/bus/scsi/devices'); log::l("waiting for usb-storage devices to appear (retry = $retry)"); - } until !$retry--; + } } } sub load_with_options { -- cgit v1.2.1