From eb9e74ecc7b7aa489de07bc52bb6d5220943154e Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 11 Aug 2012 16:07:44 +1000 Subject: Notify of removed package required as optdepend When a package is being removed, provide a notification (via a callback) if any local package requires it as an optdepend. Signed-off-by: Allan McRae --- src/pacman/callback.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pacman') diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 01c6b619..a51aa4b6 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -239,6 +239,10 @@ void cb_event(alpm_event_t event, void *data1, void *data2) printf(_("checking available disk space...\n")); } break; + case ALPM_EVENT_OPTDEP_REQUIRED: + printf(_(":: %s optionally requires %s\n"), alpm_pkg_get_name(data1), + alpm_dep_compute_string(data2)); + break; /* all the simple done events, with fallthrough for each */ case ALPM_EVENT_FILECONFLICTS_DONE: case ALPM_EVENT_CHECKDEPS_DONE: -- cgit v1.2.3-70-g09d2