diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-13 09:08:36 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-13 09:08:36 +0000 |
commit | d8c86111923137c7b792142d95f92b11829ebc74 (patch) | |
tree | 6bfa78340b8b669d8eb8641dd5408d21b9bcf5f5 | |
parent | 9f41baef1c87c6bf99f649b491826e8611b45a8e (diff) | |
download | urpmi-d8c86111923137c7b792142d95f92b11829ebc74.tar urpmi-d8c86111923137c7b792142d95f92b11829ebc74.tar.gz urpmi-d8c86111923137c7b792142d95f92b11829ebc74.tar.bz2 urpmi-d8c86111923137c7b792142d95f92b11829ebc74.tar.xz urpmi-d8c86111923137c7b792142d95f92b11829ebc74.zip |
(run) introduce "already_installed_or_not_installable" callback for GUIes
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | urpm/main_loop.pm | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -1,5 +1,6 @@ - urpmi o when using --urpmi-root, load <root>/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, ''); } } |