diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-07 12:46:38 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-07 12:46:38 +0000 |
commit | 1fad7f5afab8bf4f86e8e305cab938077db5d694 (patch) | |
tree | 95269ffeb74631cb604517c13ef59657c89ada24 | |
parent | d46aaa949af55ef1fc03263a95d280598e332cd6 (diff) | |
download | rpmdrake-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-- | NEWS | 1 | ||||
-rw-r--r-- | Rpmdrake/init.pm | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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"; |