aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/init.pm
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 /Rpmdrake/init.pm
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
Diffstat (limited to 'Rpmdrake/init.pm')
-rw-r--r--Rpmdrake/init.pm4
1 files changed, 2 insertions, 2 deletions
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;
}