Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# Epoch information should always be set, starting with zero.
epoch = 0
-# The default architecture is the architecture of the distribution.
-arch = %{DISTRO_ARCH}
-
# Place to add URLs for sources download.
source_dl =
// Set vendor
pakfire_parser_set(parser, NULL, "vendor", "%{DISTRO_VENDOR}", 0);
+ // Set arch
+ const char* arch = pakfire_get_arch(pakfire);
+ if (arch) {
+ r = pakfire_parser_set(parser, NULL, "arch", arch, 0);
+ if (r)
+ return r;
+ }
+
// Set DISTRO_NAME
const char* name = pakfire_get_distro_name(pakfire);
if (name)