summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-13 09:08:36 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-13 09:08:36 +0000
commitd8c86111923137c7b792142d95f92b11829ebc74 (patch)
tree6bfa78340b8b669d8eb8641dd5408d21b9bcf5f5
parent9f41baef1c87c6bf99f649b491826e8611b45a8e (diff)
downloadurpmi-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--NEWS1
-rw-r--r--urpm/main_loop.pm1
2 files changed, 2 insertions, 0 deletions
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 <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, '');
}
}