summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-02-21 07:24:41 +0100
committerAllan McRae <allan@archlinux.org>2016-02-26 06:18:43 +0100
commit59112e186b5c64350db79f39574c6927a10346b6 (patch)
tree23350e44e0b3ccad9ccb8e5e762cc1b9af78abfa /lib/libalpm
parent76a7d2293c0e7a732254a1cfea6a62df07b8795e (diff)
downloadpacman-59112e186b5c64350db79f39574c6927a10346b6.tar.gz
pacman-59112e186b5c64350db79f39574c6927a10346b6.tar.xz
Consider provides when warning about optdepnd removal
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index bdb7d2a8..22211d91 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -180,7 +180,7 @@ static void remove_notify_needed_optdepends(alpm_handle_t *handle, alpm_list_t *
alpm_list_t *j;
for(j = optdeps; j; j = alpm_list_next(j)) {
alpm_depend_t *optdep = j->data;
- if(alpm_pkg_find(lp, optdep->name)) {
+ if(alpm_find_satisfier(lp, optdep->name)) {
alpm_event_optdep_removal_t event = {
.type = ALPM_EVENT_OPTDEP_REMOVAL,
.pkg = pkg,