From 59112e186b5c64350db79f39574c6927a10346b6 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 21 Feb 2016 16:24:41 +1000 Subject: Consider provides when warning about optdepnd removal Signed-off-by: Allan McRae --- lib/libalpm/remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm') 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, -- cgit v1.2.3-70-g09d2