From 5d41af6b054a27ab327699ba9b82a4f05756580b Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 16 Feb 2025 16:03:05 +0000 Subject: [PATCH] build: Permit to uninstall or downgrade packages in installcheck Whenever we have a snapshot loaded, the solver might want to have a little bit more liberty to find a solution. As we give it that liberty later, we should not let the install check become a barrier. Signed-off-by: Michael Tremer --- src/pakfire/build.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pakfire/build.c b/src/pakfire/build.c index e3081938..995f8cb4 100644 --- a/src/pakfire/build.c +++ b/src/pakfire/build.c @@ -2458,7 +2458,8 @@ int pakfire_build_exec(struct pakfire_build* build, const char* path, } // Perform an install check to see whether we can build this at all - r = pakfire_package_installcheck(package, &problems, 0); + r = pakfire_package_installcheck(package, &problems, + PAKFIRE_TRANSACTION_ALLOW_UNINSTALL|PAKFIRE_TRANSACTION_ALLOW_DOWNGRADE); if (r) { ERROR(build->ctx, "Cannot build %s:\n%s\n", nevra, problems); goto ERROR; -- 2.39.5