diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-11-06 18:04:39 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-11-06 18:04:39 +0000 |
commit | 07ef1cb49605b7d2df578a79f5eee812f87a7062 (patch) | |
tree | f9bd0409fa11aaa14627a413237d0696b8754be1 /perl-install/standalone/scannerdrake | |
parent | 5a7014d19c1843b37e135e34ab3e973b706de07e (diff) | |
download | drakx-backup-do-not-use-07ef1cb49605b7d2df578a79f5eee812f87a7062.tar drakx-backup-do-not-use-07ef1cb49605b7d2df578a79f5eee812f87a7062.tar.gz drakx-backup-do-not-use-07ef1cb49605b7d2df578a79f5eee812f87a7062.tar.bz2 drakx-backup-do-not-use-07ef1cb49605b7d2df578a79f5eee812f87a7062.tar.xz drakx-backup-do-not-use-07ef1cb49605b7d2df578a79f5eee812f87a7062.zip |
make perl_checker happy
Diffstat (limited to 'perl-install/standalone/scannerdrake')
-rwxr-xr-x | perl-install/standalone/scannerdrake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/standalone/scannerdrake b/perl-install/standalone/scannerdrake index a1f94125e..da9fecb3e 100755 --- a/perl-install/standalone/scannerdrake +++ b/perl-install/standalone/scannerdrake @@ -26,7 +26,7 @@ use interactive; use common; use scanner; -for (@ARGV) { +foreach (@ARGV) { /^--version$/ and die 'version: $Id$ '."\n"; /^--help$/ and die 'logdrake [--version] [--help] [--manual] [--device=dev] [--update-sane=sane_desc_dir] [--update-usbtable] [--dynamic=dev]'; /^--update-usbtable$/ and do { scanner::updateScannerDBfromUsbtable(); exit }; @@ -40,7 +40,7 @@ $in->do_pkgs->install('sane-backends', 'xsane', if_($in->do_pkgs->is_installed(' if ($::Manual) { manual(); quit() } my $wait = $in->wait_message(N("Test ports"), N("Detecting devices ...")); @f = scanner::detect(); -$wait=undef; +$wait = undef; (@f) ? auto() : manual(); quit(); @@ -81,7 +81,7 @@ sub dynamic { $in->ask_warn('scannerdrake', N("The %s is not supported by this version of Mandrake Linux.", $name)); return; } - scanner::confScanner($name, $_->{port}) unless ($scanner::scannerDB->{$model}{flags}{unsupported}); + scanner::confScanner($name, $_->{port}) unless $scanner::scannerDB->{$model}{flags}{unsupported}; } } } |