From: Michael Tremer Date: Fri, 10 Jan 2025 16:30:29 +0000 (+0000) Subject: build: Allow uninstalling and downgrading packages X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16fd4eab4424b73a495a2d7fe6ad696221e4956a;p=people%2Fric9%2Fpakfire.git build: Allow uninstalling and downgrading packages This is required if we want to be able to obsolete things here. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/build.c b/src/pakfire/build.c index f03464b87..3f7c95577 100644 --- a/src/pakfire/build.c +++ b/src/pakfire/build.c @@ -2484,7 +2484,8 @@ static int pakfire_build_init(struct pakfire_build* build, int r; // Create a new transaction - r = pakfire_transaction_create(&transaction, build->pakfire, 0); + r = pakfire_transaction_create(&transaction, build->pakfire, + PAKFIRE_TRANSACTION_ALLOW_DOWNGRADE|PAKFIRE_TRANSACTION_ALLOW_UNINSTALL); if (r) goto ERROR;