summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-02-21 07:20:22 +0100
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-04-28 04:12:28 +0200
commitc6e46c9ebb4563a1f1446c48c242abe0c6736173 (patch)
treeb400c568874eae5d73f7de4ef8f572ebfcad7a0a
parentc2f9758018479c15a34887d960f36ba9b532175f (diff)
downloadpacman-c6e46c9ebb4563a1f1446c48c242abe0c6736173.tar.gz
pacman-c6e46c9ebb4563a1f1446c48c242abe0c6736173.tar.xz
Consider provides when labelling optdepends status as pending install
Signed-off-by: Allan McRae <allan@archlinux.org> (cherry picked from commit 76a7d2293c0e7a732254a1cfea6a62df07b8795e)
-rw-r--r--src/pacman/util.c2
1 files changed, 1 insertions, 1 deletions
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) {