[pacman-dev] [PATCH] Consider provides when labelling optdepends status as pending install

Allan McRae allan at archlinux.org
Sun Feb 21 06:20:49 UTC 2016


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 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 48a3600..e613c75 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) {
-- 
2.7.1


More information about the pacman-dev mailing list