]> git.ipfire.org Git - pakfire.git/commitdiff
dist: Hard-code architecture of source packages
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 May 2021 21:45:39 +0000 (21:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 May 2021 21:45:39 +0000 (21:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/dist.c

index 2cfb58245dc3cd8ac13e952bbb8222a8878e9b7e..39f15cfa7b0d04c29ecdba8e88bae93102b63253 100644 (file)
@@ -358,6 +358,7 @@ PAKFIRE_EXPORT int pakfire_dist(Pakfire pakfire, const char* path, const char* t
 
        struct pakfire_packager* packager = NULL;
        PakfirePackage pkg = NULL;
+       PakfireRepo repo = NULL;
 
        char tempfile[PATH_MAX];
 
@@ -377,7 +378,12 @@ PAKFIRE_EXPORT int pakfire_dist(Pakfire pakfire, const char* path, const char* t
                return r;
        }
 
-       PakfireRepo repo = pakfire_get_repo(pakfire, "@dummy");
+       // The architecture is always "src"
+       r = pakfire_parser_set(makefile, NULL, "arch", "src");
+       if (r)
+               goto ERROR;
+
+       repo = pakfire_get_repo(pakfire, "@dummy");
        if (!repo)
                goto ERROR;