From: Michael Tremer Date: Fri, 10 Jan 2025 15:15:15 +0000 (+0000) Subject: build: Simplify error message when build dependencies cannot be installed X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4a2810d60a6efb607438058dcb5eab7df92b5c8;p=people%2Fric9%2Fpakfire.git build: Simplify error message when build dependencies cannot be installed Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/build.c b/src/pakfire/build.c index 306c66f74..f03464b87 100644 --- a/src/pakfire/build.c +++ b/src/pakfire/build.c @@ -2523,21 +2523,11 @@ static int pakfire_build_init(struct pakfire_build* build, r = pakfire_transaction_solve(transaction, 0, &problems); if (r) { if (problems) - ERROR(build->ctx, "Could not install the source package:\n%s\n", problems); + ERROR(build->ctx, "Could not install packages:\n%s\n", problems); goto ERROR; } - // Set how many packages have been changed - const size_t changes = pakfire_transaction_count(transaction); - - // Sanity check to see if we actually try to install anything - if (!changes) { - ERROR(build->ctx, "The source package did not get installed\n"); - r = 1; - goto ERROR; - } - // Run the transaction r = pakfire_transaction_run(transaction); if (r)