aboutsummaryrefslogtreecommitdiffstats
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
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'
-rw-r--r--NEWS1
-rw-r--r--Rpmdrake/init.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 28669652..902e3628 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- gurpmi.addmedia:
o fix displaying --help
+ o fix --urpmi-root option
- rpmdrake:
o update GUI package list
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";