diff options
author | Allan McRae <allan@archlinux.org> | 2012-08-11 08:07:44 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2012-12-14 03:35:34 +0100 |
commit | eb9e74ecc7b7aa489de07bc52bb6d5220943154e (patch) | |
tree | b74c8fece6520bf75e6095ef6dd745632f93dc35 /lib/libalpm/alpm.h | |
parent | 0c2edbdd4992f3107d7a2bd600829fcb3f344d48 (diff) | |
download | pacman-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 'lib/libalpm/alpm.h')
-rw-r--r-- | lib/libalpm/alpm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 96da8db0..bf726fc2 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -348,7 +348,10 @@ typedef enum _alpm_event_t { /** Disk space usage will be computed for a package */ ALPM_EVENT_DISKSPACE_START, /** Disk space usage was computed for a package */ - ALPM_EVENT_DISKSPACE_DONE + ALPM_EVENT_DISKSPACE_DONE, + /** An optdepend for another package is being removed + * The requiring package and its dependency are passed to the callback */ + ALPM_EVENT_OPTDEP_REQUIRED } alpm_event_t; /** Event callback */ |