summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-08-11 08:07:44 +0200
committerAllan McRae <allan@archlinux.org>2012-12-14 03:35:34 +0100
commiteb9e74ecc7b7aa489de07bc52bb6d5220943154e (patch)
treeb74c8fece6520bf75e6095ef6dd745632f93dc35 /src
parent0c2edbdd4992f3107d7a2bd600829fcb3f344d48 (diff)
downloadpacman-eb9e74ecc7b7aa489de07bc52bb6d5220943154e.tar.gz
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.c4
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: