libpkgconf: pkg: show iteration depth when traversing

feature/tap-sh
William Pitcock 2017-03-24 00:59:53 -05:00
parent be184cba1d
commit acac1f8ed3
1 changed files with 2 additions and 0 deletions

View File

@ -1386,6 +1386,8 @@ pkgconf_pkg_traverse(pkgconf_client_t *client,
if (maxdepth == 0)
return eflags;
PKGCONF_TRACE(client, "%s: level %d", root->id, maxdepth);
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)