queue: skip dependency collection for root node

master
Ariadne Conill 2022-06-26 18:04:42 +00:00
parent 5a82a259ac
commit fe4db3aad9
1 changed files with 3 additions and 0 deletions

View File

@ -113,6 +113,9 @@ pkgconf_queue_collect_dependents(pkgconf_client_t *client, pkgconf_pkg_t *pkg, v
pkgconf_node_t *node; pkgconf_node_t *node;
pkgconf_pkg_t *world = data; pkgconf_pkg_t *world = data;
if (pkg == world)
return;
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;