]> git.ipfire.org Git - pakfire.git/commitdiff
buildservice: Don't send "(null)" as repository name if none given
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Jan 2025 15:01:39 +0000 (15:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Jan 2025 15:01:39 +0000 (15:01 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/buildservice.c

index 73fc61a403f2ce7f7128d1244a437da45a87b5e1..3729699cc2eee2d0fa321e4a8b90e2634940b577 100644 (file)
@@ -236,9 +236,11 @@ int pakfire_buildservice_build(struct pakfire_buildservice* service, const char*
                goto ERROR;
 
        // Add the repo parameter
-       r = pakfire_xfer_add_param(xfer, "repo", "%s", repo);
-       if (r)
-               goto ERROR;
+       if (repo) {
+               r = pakfire_xfer_add_param(xfer, "repo", "%s", repo);
+               if (r)
+                       goto ERROR;
+       }
 
        // Add any arches
        if (arches) {