From: Michael Tremer Date: Mon, 3 May 2021 21:45:39 +0000 (+0000) Subject: dist: Hard-code architecture of source packages X-Git-Tag: 0.9.28~1285^2~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04f60774f6f1ed1db82066d818fa406445909721;p=pakfire.git dist: Hard-code architecture of source packages Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/dist.c b/src/libpakfire/dist.c index 2cfb58245..39f15cfa7 100644 --- a/src/libpakfire/dist.c +++ b/src/libpakfire/dist.c @@ -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;