Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-02-21 16:24:41 +1000
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-04-27 22:12:42 -0400
commit5211118a0668825534fad72c8b7a8bbc928343a4 (patch)
tree9a1b4257d838fe9f10912d01f365e2aed7465da4
parentc6e46c9ebb4563a1f1446c48c242abe0c6736173 (diff)
Consider provides when warning about optdepnd removal
Signed-off-by: Allan McRae <allan@archlinux.org> (cherry picked from commit 59112e186b5c64350db79f39574c6927a10346b6)
-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,