queue: demote requires to requires.private when processing requires.private parents

Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill 2023-10-09 07:22:59 +00:00
parent 86c43b4e3d
commit 752a9825dc
1 changed files with 4 additions and 1 deletions

View File

@ -117,7 +117,10 @@ pkgconf_queue_collect_dependents(pkgconf_client_t *client, pkgconf_pkg_t *pkg, v
flattened_dep = pkgconf_dependency_copy(client, node->data);
if ((client->flags & PKGCONF_PKG_PKGF_ITER_PKG_IS_PRIVATE) != PKGCONF_PKG_PKGF_ITER_PKG_IS_PRIVATE)
pkgconf_node_insert(&flattened_dep->iter, flattened_dep, &world->required);
else
pkgconf_node_insert(&flattened_dep->iter, flattened_dep, &world->requires_private);
}
if (client->flags & PKGCONF_PKG_PKGF_SEARCH_PRIVATE)