From 5e5c418837b569196cc17eb999b3c11a9cc0099d Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 22 Jan 2017 11:25:05 +0100 Subject: [PATCH] Actually fix the regression introduced in 7b39c38 --- libpkgconf/pkg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libpkgconf/pkg.c b/libpkgconf/pkg.c index c2fa160..3654136 100644 --- a/libpkgconf/pkg.c +++ b/libpkgconf/pkg.c @@ -1336,6 +1336,7 @@ pkgconf_pkg_traverse(pkgconf_client_t *client, void *data, int maxdepth) { + unsigned int saved_flags = client->flags; unsigned int eflags = PKGCONF_PKG_ERRF_OK; if (maxdepth == 0) @@ -1346,6 +1347,7 @@ pkgconf_pkg_traverse(pkgconf_client_t *client, if (func != NULL) func(client, root, data); } + client->flags &= ~PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL; if (!(client->flags & PKGCONF_PKG_PKGF_SKIP_CONFLICTS)) { @@ -1368,6 +1370,7 @@ pkgconf_pkg_traverse(pkgconf_client_t *client, if (eflags != PKGCONF_PKG_ERRF_OK) return eflags; } + client->flags = saved_flags; return eflags; }