Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2016-02-21 16:20:22 +1000
committerAndrew Gregory <andrew.gregory.8@gmail.com>2017-04-27 22:12:28 -0400
commitc6e46c9ebb4563a1f1446c48c242abe0c6736173 (patch)
treeb400c568874eae5d73f7de4ef8f572ebfcad7a0a /src
parentc2f9758018479c15a34887d960f36ba9b532175f (diff)
Consider provides when labelling optdepends status as pending install
Signed-off-by: Allan McRae <allan@archlinux.org> (cherry picked from commit 76a7d2293c0e7a732254a1cfea6a62df07b8795e)
Diffstat (limited to 'src')
-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) {