From 76a7d2293c0e7a732254a1cfea6a62df07b8795e Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 21 Feb 2016 16:20:22 +1000 Subject: Consider provides when labelling optdepends status as pending install Signed-off-by: Allan McRae --- src/pacman/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pacman/util.c b/src/pacman/util.c index 48a3600d..e613c759 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -1203,7 +1203,7 @@ static char *make_optstring(alpm_depend_t *optdep) char *status = NULL; if(alpm_find_satisfier(alpm_db_get_pkgcache(localdb), optdep->name)) { status = _(" [installed]"); - } else if(alpm_pkg_find(alpm_trans_get_add(config->handle), optdep->name)) { + } else if(alpm_find_satisfier(alpm_trans_get_add(config->handle), optdep->name)) { status = _(" [pending]"); } if(status) { -- cgit v1.2.3-24-g4f1b