forked from ariadne/pkgconf
cli: fix --modversion not showing version with versioned query
Fixes #317. Signed-off-by: Xi Ruoyao <xry111@xry111.site>
parent
5aeb469b81
commit
962a5e96b7
|
@ -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_pkg_t *pkg = dep->match;
|
||||
|
||||
if (strcmp(pkg->why, queue_node->package))
|
||||
if (strncmp(pkg->why, queue_node->package, strlen(pkg->why)))
|
||||
continue;
|
||||
|
||||
if (pkg->version != NULL) {
|
||||
|
|
Loading…
Reference in New Issue