aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-12-04 11:53:36 +0000
committerThierry Vignaud <tv@mandriva.org>2006-12-04 11:53:36 +0000
commit1fdc9f08d706bbf249fa23d4a693792b61769400 (patch)
tree3b6c24938636e840441c0ef68e56cc458e5ea472
parente2bef0835a8f5d0249bc6c5447c73d75a6879c00 (diff)
downloadrpmdrake-1fdc9f08d706bbf249fa23d4a693792b61769400.tar
rpmdrake-1fdc9f08d706bbf249fa23d4a693792b61769400.tar.gz
rpmdrake-1fdc9f08d706bbf249fa23d4a693792b61769400.tar.bz2
rpmdrake-1fdc9f08d706bbf249fa23d4a693792b61769400.tar.xz
rpmdrake-1fdc9f08d706bbf249fa23d4a693792b61769400.zip
perl_checker cleanups
-rwxr-xr-xgurpmi.addmedia4
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,