diff --git a/libpkgconf/pkg.c b/libpkgconf/pkg.c index c2fa160..3f5ca2d 100644 --- a/libpkgconf/pkg.c +++ b/libpkgconf/pkg.c @@ -1341,7 +1341,7 @@ pkgconf_pkg_traverse(pkgconf_client_t *client, if (maxdepth == 0) return eflags; - if ((root->flags & PKGCONF_PKG_PROPF_VIRTUAL) != PKGCONF_PKG_PROPF_VIRTUAL || (client->flags & PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL) != PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL) + if ((root->flags & PKGCONF_PKG_PROPF_VIRTUAL) != PKGCONF_PKG_PROPF_VIRTUAL || (client->flags & ~PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL) != PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL) { if (func != NULL) func(client, root, data);