summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Brunel <jjk@jjacky.com>2014-01-10 16:25:13 +0100
committerAllan McRae <allan@archlinux.org>2014-01-28 11:10:49 +0100
commit4e9d88aa05184e29368f1602b9fcb6a05d293095 (patch)
treee5d3de423bdbce560ce70b03fc408781f26eca69 /lib
parente65a752475797eb3e917858190a2679e9cd680b9 (diff)
downloadpacman-4e9d88aa05184e29368f1602b9fcb6a05d293095.tar.gz
pacman-4e9d88aa05184e29368f1602b9fcb6a05d293095.tar.xz
Rename ALPM_EVENT_OPTDEP_REQUIRED to _OPTDEP_REMOVAL
Because this event is triggered when an optdepend for another package is being removed. Signed-off-by: Olivier Brunel <jjk@jjacky.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/alpm.h2
-rw-r--r--lib/libalpm/remove.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 5628527d..126f50a5 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -377,7 +377,7 @@ typedef enum _alpm_event_t {
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_OPTDEP_REMOVAL,
/** A configured repository database is missing */
ALPM_EVENT_DATABASE_MISSING,
/** Checking keys used to create signatures are in keyring. */
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index 899952b7..d78c5f1f 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -179,7 +179,7 @@ static void remove_notify_needed_optdepends(alpm_handle_t *handle, alpm_list_t *
for(j = optdeps; j; j = alpm_list_next(j)) {
alpm_depend_t *optdep = j->data;
if(alpm_pkg_find(lp, optdep->name)) {
- EVENT(handle, ALPM_EVENT_OPTDEP_REQUIRED, pkg, optdep);
+ EVENT(handle, ALPM_EVENT_OPTDEP_REMOVAL, pkg, optdep);
}
}
}