queue: ensure private deps get flattened when --static is requested
ci/woodpecker/push/woodpecker Pipeline was successful Details

pull/243/head
Ariadne Conill 2022-08-08 00:58:39 +00:00
parent 03ba00d30b
commit 79d25f979d
1 changed files with 6 additions and 8 deletions

View File

@ -116,18 +116,16 @@ pkgconf_queue_collect_dependents(pkgconf_client_t *client, pkgconf_pkg_t *pkg, v
if (pkg == world)
return;
if (!(pkg->flags & PKGCONF_PKG_PKGF_SEARCH_PRIVATE))
PKGCONF_FOREACH_LIST_ENTRY(pkg->required.head, node)
{
PKGCONF_FOREACH_LIST_ENTRY(pkg->required.head, node)
{
pkgconf_dependency_t *flattened_dep;
pkgconf_dependency_t *flattened_dep;
flattened_dep = pkgconf_dependency_copy(client, node->data);
flattened_dep = pkgconf_dependency_copy(client, node->data);
pkgconf_node_insert(&flattened_dep->iter, flattened_dep, &world->required);
}
pkgconf_node_insert(&flattened_dep->iter, flattened_dep, &world->required);
}
else
if (client->flags & PKGCONF_PKG_PKGF_SEARCH_PRIVATE)
{
PKGCONF_FOREACH_LIST_ENTRY(pkg->requires_private.head, node)
{