cli: fix --modversion not showing version with versioned query

Fixes #317.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Xi Ruoyao 2023-09-07 19:38:01 +08:00 committed by Ariadne Conill
parent 5aeb469b81
commit 962a5e96b7
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ apply_modversion(pkgconf_client_t *client, pkgconf_pkg_t *world, void *data, int
pkgconf_dependency_t *dep = world_iter->data; pkgconf_dependency_t *dep = world_iter->data;
pkgconf_pkg_t *pkg = dep->match; pkgconf_pkg_t *pkg = dep->match;
if (strcmp(pkg->why, queue_node->package)) if (strncmp(pkg->why, queue_node->package, strlen(pkg->why)))
continue; continue;
if (pkg->version != NULL) { if (pkg->version != NULL) {