[pacman-dev] [PATCH] Consider provides when warning about optdepnd removal
Allan McRae
allan at archlinux.org
Sun Feb 21 06:25:11 UTC 2016
Signed-off-by: Allan McRae <allan at archlinux.org>
---
lib/libalpm/remove.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index bdb7d2a..22211d9 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,
--
2.7.1
More information about the pacman-dev
mailing list