From e2a8080cbff69a105e5f4ef07e75ed46c5005ac8 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Fri, 23 Feb 2024 15:18:08 +0100 Subject: [PATCH] Reuse static solution for general solution --- cli/main.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cli/main.c b/cli/main.c index 15f99cb..d89d14e 100644 --- a/cli/main.c +++ b/cli/main.c @@ -1576,20 +1576,8 @@ cleanup3: printf(" "); if (!(want_flags & PKG_STATIC)) - { pkgconf_client_set_flags(&pkg_client, pkg_client.flags & ~PKGCONF_PKG_PKGF_SEARCH_PRIVATE); - /* redo the solution for the library set: free the solution itself, and any cached graph nodes */ - pkgconf_solution_free(&pkg_client, &world); - pkgconf_cache_free(&pkg_client); - - if (!pkgconf_queue_solve(&pkg_client, &pkgq, &world, maximum_traverse_depth)) - { - ret = EXIT_FAILURE; - goto out; - } - } - apply_libs(&pkg_client, &world, NULL, 2); }