Consider provides when labelling optdepends status as pending install
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
8ff03868a3
commit
76a7d2293c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue