]> git.ipfire.org Git - people/ric9/pakfire.git/commitdiff
build: Simplify error message when build dependencies cannot be installed
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Jan 2025 15:15:15 +0000 (15:15 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Jan 2025 15:15:15 +0000 (15:15 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/build.c

index 306c66f7472ef2cfd10a1c56eea901172a8673d0..f03464b8778a4fe9831cc6d92d58eb23f50ba2fc 100644 (file)
@@ -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)