From 9105c4e3117d48cc072f72dc8440ba225fca9959 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 19 Sep 2011 18:20:06 +0000 Subject: (run) add infrastructure so that GUIes can offer not to ask anymore about missing or bad packages --- NEWS | 2 ++ urpm/main_loop.pm | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index bf655665..60f4587c 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ - add infrastructure for rpmdrake (#920) +- add infrastructure so that GUIes can offer not to ask anymore about missing + or bad packages Version 6.40 - 07 May 2010 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?"))); } -- cgit v1.2.1