Consider provides when labelling optdepends status as pending install

Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit 76a7d2293c)
This commit is contained in:
Allan McRae 2016-02-21 16:20:22 +10:00 committed by Andrew Gregory
parent c2f9758018
commit c6e46c9ebb

View file

@ -1203,7 +1203,7 @@ static char *make_optstring(alpm_depend_t *optdep)
char *status = NULL; char *status = NULL;
if(alpm_find_satisfier(alpm_db_get_pkgcache(localdb), optdep->name)) { if(alpm_find_satisfier(alpm_db_get_pkgcache(localdb), optdep->name)) {
status = _(" [installed]"); 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]"); status = _(" [pending]");
} }
if(status) { if(status) {