aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/init.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-07 12:46:38 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-07 12:46:38 +0000
commit1fad7f5afab8bf4f86e8e305cab938077db5d694 (patch)
tree95269ffeb74631cb604517c13ef59657c89ada24 /Rpmdrake/init.pm
parentd46aaa949af55ef1fc03263a95d280598e332cd6 (diff)
downloadrpmdrake-1fad7f5afab8bf4f86e8e305cab938077db5d694.tar
rpmdrake-1fad7f5afab8bf4f86e8e305cab938077db5d694.tar.gz
rpmdrake-1fad7f5afab8bf4f86e8e305cab938077db5d694.tar.bz2
rpmdrake-1fad7f5afab8bf4f86e8e305cab938077db5d694.tar.xz
rpmdrake-1fad7f5afab8bf4f86e8e305cab938077db5d694.zip
fix parsing @ARGV which left undef values that break gurpmi.addmedia
when using '--foobar' like option such as '--urpmi-root'
Diffstat (limited to 'Rpmdrake/init.pm')
-rw-r--r--Rpmdrake/init.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm
index 94e7a203..d1a5c290 100644
--- a/Rpmdrake/init.pm
+++ b/Rpmdrake/init.pm
@@ -102,7 +102,7 @@ foreach (@ARGV) {
my ($name, $values) = split /=/, $val;
my @values = split /,/, $values;
$rpmdrake_options{$name} = \@values if @values;
- undef $_;
+ shift @ARGV
} else {
if ($val eq 'version') {
print "$0 $version\n";