pkg: only advance serial if we are actually traversing from a root

pull/243/head
Ariadne Conill 2022-08-08 09:34:45 +00:00
parent 760d1eea10
commit 69f630aadc
1 changed files with 2 additions and 1 deletions

View File

@ -1622,7 +1622,8 @@ pkgconf_pkg_traverse(pkgconf_client_t *client,
int maxdepth,
unsigned int skip_flags)
{
client->serial++;
if (root->flags & PKGCONF_PKG_PROPF_VIRTUAL)
client->serial++;
return pkgconf_pkg_traverse_main(client, root, func, data, maxdepth, skip_flags);
}