]> git.ipfire.org Git - pakfire.git/commitdiff
build: Write all packages to the @build repository
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 31 Oct 2022 15:16:17 +0000 (15:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 31 Oct 2022 15:16:17 +0000 (15:16 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/build.c

index decfec879296a8d8d6b0b779782342767da3340c..fabe5c26666343c7dd970c925c733f3ac801fbda 100644 (file)
@@ -583,8 +583,10 @@ static int pakfire_build_package(struct pakfire_build* build, struct pakfire_par
        if (r)
                goto ERROR;
 
+       const char* path = pakfire_repo_get_path(build->result);
+
        // Write the finished package
-       r = pakfire_packager_finish_to_directory(packager, build->target, NULL);
+       r = pakfire_packager_finish_to_directory(packager, path, NULL);
        if (r) {
                ERROR(build->pakfire, "pakfire_packager_finish() failed: %m\n");
                goto ERROR;