aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-04 13:46:46 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-04 13:46:46 +0000
commite4dc6aa93b0de9c14d0f3e3e693a16723cd13117 (patch)
tree602de0bdb1edbd000dc09e72ec3634e0253eb800 /Rpmdrake
parent562f96200ef960151bbd283f567febe0d35e813e (diff)
downloadrpmdrake-e4dc6aa93b0de9c14d0f3e3e693a16723cd13117.tar
rpmdrake-e4dc6aa93b0de9c14d0f3e3e693a16723cd13117.tar.gz
rpmdrake-e4dc6aa93b0de9c14d0f3e3e693a16723cd13117.tar.bz2
rpmdrake-e4dc6aa93b0de9c14d0f3e3e693a16723cd13117.tar.xz
rpmdrake-e4dc6aa93b0de9c14d0f3e3e693a16723cd13117.zip
handle --test
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/init.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm
index 0625bcbf..aac2d689 100644
--- a/Rpmdrake/init.pm
+++ b/Rpmdrake/init.pm
@@ -52,6 +52,7 @@ N(" --urpmi-root use another root for urpmi db & rpm installation"),
N(" --root force to run as root") . ' ' . N("(Deprecated)"),
N(" --run-as-root force to run as root"),
N(" --search=pkg run search for \"pkg\""),
+N(" --test only verify if the installation can be achieved correctly"),
chomp_(N(" --version - print this tool's version number.
")),
""
@@ -96,8 +97,11 @@ foreach (@ARGV) {
if ($val eq 'version') {
print "$0 $version\n";
exit(0);
+ } elsif ($val eq 'test') {
+ $::test = 1;
+ } else {
+ $rpmdrake_options{$val} = 1;
}
- $rpmdrake_options{$val} = 1;
}
}