diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-04 16:05:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-04 16:05:10 +0000 |
commit | acda47a463aed3e9bc8add4a29147766b7c58caf (patch) | |
tree | b6a7054279af8b4560ae8ba24aee1e7776cebf0e | |
parent | 284baa28571dfbd4a4b49d34febc2e8484fd09f3 (diff) | |
download | rpmdrake-acda47a463aed3e9bc8add4a29147766b7c58caf.tar rpmdrake-acda47a463aed3e9bc8add4a29147766b7c58caf.tar.gz rpmdrake-acda47a463aed3e9bc8add4a29147766b7c58caf.tar.bz2 rpmdrake-acda47a463aed3e9bc8add4a29147766b7c58caf.tar.xz rpmdrake-acda47a463aed3e9bc8add4a29147766b7c58caf.zip |
be able to handle --expert
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | Rpmdrake/init.pm | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -1,3 +1,5 @@ +- all + be able to handle --expert - gurpmi.addmedia o instead of discarding --update when using --distrib, give it a meaning: only add media flagged "update" diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm index a7c5e059..7f79851d 100644 --- a/Rpmdrake/init.pm +++ b/Rpmdrake/init.pm @@ -110,8 +110,8 @@ foreach (@ARGV) { if ($val eq 'version') { print "$0 $version\n"; exit(0); - } elsif ($val eq 'test') { - $::test = 1; + } elsif ($val =~ /^(test|expert)$/) { + eval "\$::$1 = 1"; } else { $rpmdrake_options{$val} = 1; } |