summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 09:20:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 09:20:55 +0000
commitdbc1dddbef3a640401e128761ae1154ebf7b6365 (patch)
tree67e39e20ac1f63eb96f2988df2c3ddd0c36b89a2 /urpme
parentfc53c4b6e0ff41608fb7cba69a4f44ed0d09d46e (diff)
downloadurpmi-dbc1dddbef3a640401e128761ae1154ebf7b6365.tar
urpmi-dbc1dddbef3a640401e128761ae1154ebf7b6365.tar.gz
urpmi-dbc1dddbef3a640401e128761ae1154ebf7b6365.tar.bz2
urpmi-dbc1dddbef3a640401e128761ae1154ebf7b6365.tar.xz
urpmi-dbc1dddbef3a640401e128761ae1154ebf7b6365.zip
- urpme:
o --test: display "Removal is possible" if no pb (#40584) (though i wonder what kind of issues could arise when testing transaction?)
Diffstat (limited to 'urpme')
-rw-r--r--urpme4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpme b/urpme
index 78f26546..4cdc7333 100644
--- a/urpme
+++ b/urpme
@@ -176,7 +176,9 @@ my @errors = $parallel
if (@errors) {
#- Warning : the following message is parsed in urpm::parallel_*
$urpm->{fatal}(2, N("Removal failed") . ":\n" . join("\n", map { "\t$_" } @errors));
-} elsif ($may_be_orphans && !$options{auto_orphans} && !$test) {
+} elsif ($test) {
+ print N("Removal is possible"), "\n";
+} elsif ($may_be_orphans && !$options{auto_orphans}) {
if (my $msg = urpm::orphans::get_now_orphans_msg($urpm)) {
print "\n", $msg;
}