From: Michael Tremer Date: Sun, 16 Feb 2025 16:03:05 +0000 (+0000) Subject: build: Permit to uninstall or downgrade packages in installcheck X-Git-Tag: 0.9.30~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d41af6b054a27ab327699ba9b82a4f05756580b;p=pakfire.git 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 --- 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;