summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--urpme4
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 0c6d9eda..e571f61e 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@
o --suggests now displays the suggested packages, see --allow-suggests for
previous behaviour (#39726)
o add --obsoletes
+- urpme:
+ o --test: display "Removal is possible" if no pb (#40584)
Version 6.0 - 8 July 2008, by Pascal "Pixel" Rigaux
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;
}