summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2018-09-18 16:08:37 +0200
committerAndrew Gregory <andrew@archlinux.org>2018-11-19 02:25:18 +0100
commit4fc7c1d41efcce7f85def270c0ce8edca1062fc4 (patch)
treee35eda32a49d7b4f46bed5068f94ad2166552683
parent5e81518ecb4ba9c8b7231e9b627f45d3abb19ce3 (diff)
downloadpacman-4fc7c1d41efcce7f85def270c0ce8edca1062fc4.tar.gz
pacman-4fc7c1d41efcce7f85def270c0ce8edca1062fc4.tar.xz
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> (cherry picked from commit 3318039e3b1530396b0e3ced49ea6fe5b6ea00c5)
-rw-r--r--src/pacman/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c
index e80c5953..ee43dca7 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -170,7 +170,7 @@ static void optdeplist_display(alpm_pkg_t *pkg, unsigned short cols)
alpm_depend_t *optdep = i->data;
char *depstring = alpm_dep_compute_string(optdep);
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]");
depstring = realloc(depstring, strlen(depstring) + strlen(installed) + 1);
strcpy(depstring + strlen(depstring), installed);