aboutsummaryrefslogtreecommitdiffstats
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
parent562f96200ef960151bbd283f567febe0d35e813e (diff)
downloadrpmdrake-e4dc6aa93b0de9c14d0f3e3e693a16723cd13117.tar
rpmdrake-e4dc6aa93b0de9c14d0f3e3e693a16723cd13117.tar.gz
rpmdrake-e4dc6aa93b0de9c14d0f3e3e693a16723cd13117.tar.bz2
rpmdrake-e4dc6aa93b0de9c14d0f3e3e693a16723cd13117.tar.xz
rpmdrake-e4dc6aa93b0de9c14d0f3e3e693a16723cd13117.zip
handle --test
-rw-r--r--NEWS1
-rw-r--r--Rpmdrake/init.pm6
2 files changed, 6 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 50c2262b..72983bc6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
- adapt to urpmi-5.7 API:
o don't want to force a device anymore
o handle new "cdrom://" type
+- handle --test
Version 4.3.1 - Wed Feb 27 2008, Thierry Vignaud
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;
}
}