pacman: check versioned optdepends in -Qi operation
Fixes FS#60106 Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
ba2984db3e
commit
3318039e3b
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ static void optdeplist_display(alpm_pkg_t *pkg, unsigned short cols)
|
||||||
alpm_depend_t *optdep = i->data;
|
alpm_depend_t *optdep = i->data;
|
||||||
char *depstring = alpm_dep_compute_string(optdep);
|
char *depstring = alpm_dep_compute_string(optdep);
|
||||||
if(alpm_pkg_get_origin(pkg) == ALPM_PKG_FROM_LOCALDB) {
|
if(alpm_pkg_get_origin(pkg) == ALPM_PKG_FROM_LOCALDB) {
|
||||||
if(alpm_find_satisfier(alpm_db_get_pkgcache(localdb), optdep->name)) {
|
if(alpm_find_satisfier(alpm_db_get_pkgcache(localdb), depstring)) {
|
||||||
const char *installed = _(" [installed]");
|
const char *installed = _(" [installed]");
|
||||||
depstring = realloc(depstring, strlen(depstring) + strlen(installed) + 1);
|
depstring = realloc(depstring, strlen(depstring) + strlen(installed) + 1);
|
||||||
strcpy(depstring + strlen(depstring), installed);
|
strcpy(depstring + strlen(depstring), installed);
|
||||||
|
|
Loading…
Add table
Reference in a new issue