From 89f8ab51c0b4bf3701fe9291736a58483ddf7c00 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 13 Aug 2007 09:07:51 +0000 Subject: (install) add support for "callback_report_uninst" callback for rpmdrake --- NEWS | 1 + urpm/install.pm | 1 + 2 files changed, 2 insertions(+) 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 /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++; -- cgit v1.2.1