From d8c86111923137c7b792142d95f92b11829ebc74 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 13 Aug 2007 09:08:36 +0000 Subject: (run) introduce "already_installed_or_not_installable" callback for GUIes --- NEWS | 1 + urpm/main_loop.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS b/NEWS index dfcf8198..9fdeb72f 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ - urpmi o when using --urpmi-root, load /etc/rpm/macros + o enable GUIes to display already installed & not installable RPMs o enable GUIes to display uninstallations - urpmi.cfg o really add global option no-suggests diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index 6bd42200..0f074ef3 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -274,6 +274,7 @@ if ($nok) { @error == 1 ? N("Package %s can not be installed", join(', ', @error)) : N("Packages %s can not be installed", join(', ', @error)); + $callbacks->{already_installed_or_not_installable} and $callbacks->{already_installed_or_not_installable}->(\@msg1, \@msg2); print join("\n", @msg1, @msg2, ''); } } -- cgit v1.2.1