diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-09-19 18:20:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-09-19 18:20:06 +0000 |
commit | 9105c4e3117d48cc072f72dc8440ba225fca9959 (patch) | |
tree | 99e3ba3de1ff79fc9c146d5887a32e0d5a776075 /urpm/main_loop.pm | |
parent | 14d5d42f1d640396b4c3f4da2a0af70e74b0ae71 (diff) | |
download | urpmi-9105c4e3117d48cc072f72dc8440ba225fca9959.tar urpmi-9105c4e3117d48cc072f72dc8440ba225fca9959.tar.gz urpmi-9105c4e3117d48cc072f72dc8440ba225fca9959.tar.bz2 urpmi-9105c4e3117d48cc072f72dc8440ba225fca9959.tar.xz urpmi-9105c4e3117d48cc072f72dc8440ba225fca9959.zip |
(run) add infrastructure so that GUIes can offer not to ask anymore about missing or bad packages
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r-- | urpm/main_loop.pm | 3 |
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?"))); } |