aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
}