summaryrefslogtreecommitdiffstats
path: root/urpm/main_loop.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r--urpm/main_loop.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index fb64d963..9cdc5872 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -276,10 +276,7 @@ if ($nok) {
}
} else {
$callbacks->{success_summary} and $callbacks->{success_summary}->();
- if ($test) {
- #- Warning : the following message is parsed in urpm::parallel_*
- print N("Installation is possible"), "\n";
- } elsif ($something_was_to_be_done || $auto_select) {
+ if ($something_was_to_be_done || $auto_select) {
if (@{$state->{transaction} || []} == 0 && @$ask_unselect == 0) {
if ($options{verbose} >= 0) {
if ($auto_select) {
@@ -302,6 +299,9 @@ if ($nok) {
}
}
$exit_code = 15 if our $expect_install;
+ } elsif ($test && $exit_code == 0) {
+ #- Warning : the following message is parsed in urpm::parallel_*
+ print N("Installation is possible"), "\n";
}
}
}