diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-12-04 11:53:36 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-12-04 11:53:36 +0000 |
commit | 1fdc9f08d706bbf249fa23d4a693792b61769400 (patch) | |
tree | 3b6c24938636e840441c0ef68e56cc458e5ea472 /gurpmi.addmedia | |
parent | e2bef0835a8f5d0249bc6c5447c73d75a6879c00 (diff) | |
download | rpmdrake-1fdc9f08d706bbf249fa23d4a693792b61769400.tar rpmdrake-1fdc9f08d706bbf249fa23d4a693792b61769400.tar.gz rpmdrake-1fdc9f08d706bbf249fa23d4a693792b61769400.tar.bz2 rpmdrake-1fdc9f08d706bbf249fa23d4a693792b61769400.tar.xz rpmdrake-1fdc9f08d706bbf249fa23d4a693792b61769400.zip |
perl_checker cleanups
Diffstat (limited to 'gurpmi.addmedia')
-rwxr-xr-x | gurpmi.addmedia | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gurpmi.addmedia b/gurpmi.addmedia index 6787123b..18fa6845 100755 --- a/gurpmi.addmedia +++ b/gurpmi.addmedia @@ -90,7 +90,7 @@ while (@ARGV) { } push @addmedia_args, [ $name, $url, $with, $with_hdlist ]; push @names, $name; - shift @ARGV for 1 .. ($with ? 4 : 2); + shift @ARGV foreach 1 .. ($with ? 4 : 2); } $fromfile and do { @@ -112,7 +112,7 @@ to your system from that new medium.", $names[0]) my $urpm = urpm->new; urpm::media::read_config($urpm); my $success = 1; -for (@addmedia_args) { +foreach (@addmedia_args) { #- NB: that short circuits $success = $success && add_medium_and_check( $urpm, |