From 752a9825dc8660d247c457aa4d256db4800ebd7c Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Mon, 9 Oct 2023 07:22:59 +0000 Subject: [PATCH] queue: demote requires to requires.private when processing requires.private parents Signed-off-by: Ariadne Conill --- libpkgconf/queue.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libpkgconf/queue.c b/libpkgconf/queue.c index c21f490..0c44ff6 100644 --- a/libpkgconf/queue.c +++ b/libpkgconf/queue.c @@ -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); - pkgconf_node_insert(&flattened_dep->iter, flattened_dep, &world->required); + 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)