]> git.ipfire.org Git - pakfire.git/commitdiff
build: Fix printing erros when repos config could not be written
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 20:08:43 +0000 (20:08 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 20:08:43 +0000 (20:08 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/build.c

index 995f8cb45dea9c5bb13eaa04dbb23f922ccf299d..be6e6e45f81eeef06f856a5d82c7d61c2da4cdc2 100644 (file)
@@ -193,8 +193,9 @@ static int __pakfire_build_setup_repo(struct pakfire* pakfire,
 
        // Write repository configuration
        r = pakfire_repo_write_config(repo, f);
-       if (r) {
-               ERROR(build->ctx, "Could not write repository configuration for %s: %m\n", name);
+       if (r < 0) {
+               ERROR(build->ctx, "Could not write repository configuration for %s: %s\n",
+                       name, strerror(-r));
                goto ERROR;
        }