summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-13 09:07:51 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-13 09:07:51 +0000
commit89f8ab51c0b4bf3701fe9291736a58483ddf7c00 (patch)
tree118c829ef4199178eef385faca09bb2b4f4a73ef
parent79f7c0fc83b31b3d6971277735875baa2eb8f49a (diff)
downloadurpmi-89f8ab51c0b4bf3701fe9291736a58483ddf7c00.tar
urpmi-89f8ab51c0b4bf3701fe9291736a58483ddf7c00.tar.gz
urpmi-89f8ab51c0b4bf3701fe9291736a58483ddf7c00.tar.bz2
urpmi-89f8ab51c0b4bf3701fe9291736a58483ddf7c00.tar.xz
urpmi-89f8ab51c0b4bf3701fe9291736a58483ddf7c00.zip
(install) add support for "callback_report_uninst" callback for rpmdrake
-rw-r--r--NEWS1
-rw-r--r--urpm/install.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 971ceef5..dfcf8198 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 uninstallations
- urpmi.cfg
o really add global option no-suggests
diff --git a/urpm/install.pm b/urpm/install.pm
index b758923c..d6a484bc 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -204,6 +204,7 @@ sub install {
if (member($name, @previous)) {
$urpm->{log}("removing upgraded package $fullname");
} else {
+ $options{callback_report_uninst} and $options{callback_report_uninst}->(N("Removing package %s", $fullname));
print N("removing package %s", $fullname), "\n" if $options{verbose} >= 0;
}
$index++;