From 97146692ae4c68cdbbbbe72b019eea60b29a967d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 1 Feb 2012 23:57:29 +0100 Subject: [PATCH] Fix building for "noarch". It was searched for a noarch architecture which is just virtual. The achitecture for the build should be the default one of the build host. --- python/pakfire/distro.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/pakfire/distro.py b/python/pakfire/distro.py index ade786eef..fc12d121d 100644 --- a/python/pakfire/distro.py +++ b/python/pakfire/distro.py @@ -105,7 +105,13 @@ class Distribution(object): return self._data.get("maintainer") def get_arch(self): - return self._data.get("arch") or self.config.host_arch + arch = self._data.get("arch") or self.config.host_arch + + # We can not set up a build environment for noarch. + if arch == "noarch": + arch = system.arch + + return arch def set_arch(self, arch): # XXX check if we are allowed to set this arch -- 2.39.5