diff options
author | Allan McRae <allan@archlinux.org> | 2012-08-11 16:07:44 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2012-12-14 12:35:34 +1000 |
commit | eb9e74ecc7b7aa489de07bc52bb6d5220943154e (patch) | |
tree | b74c8fece6520bf75e6095ef6dd745632f93dc35 /src | |
parent | 0c2edbdd4992f3107d7a2bd600829fcb3f344d48 (diff) | |
download | pacman-eb9e74ecc7b7aa489de07bc52bb6d5220943154e.tar.xz |
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 <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/callback.c | 4 |
1 files changed, 4 insertions, 0 deletions
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: |