aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-04 16:05:10 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-04 16:05:10 +0000
commitacda47a463aed3e9bc8add4a29147766b7c58caf (patch)
treeb6a7054279af8b4560ae8ba24aee1e7776cebf0e
parent284baa28571dfbd4a4b49d34febc2e8484fd09f3 (diff)
downloadrpmdrake-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--NEWS2
-rw-r--r--Rpmdrake/init.pm4
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 0a3d5e3a..45116f3d 100644
--- a/NEWS
+++ b/NEWS
@@ -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;
}