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.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index 3a9df65c..25f5ef08 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -168,7 +168,8 @@ sub run {
if ($urpm->{options}{auto}) {
push @formatted_errors, @$msgs;
} else {
- $go_on = $callbacks->{ask_yes_or_no}->(
+ my $sub = $callbacks->{ask_for_bad_or_missing} || $callbacks->{ask_yes_or_no};
+ $go_on = $sub->(
N("Installation failed"),
join("\n\n", @$msgs, N("Try to continue anyway?")));
}