Skip the src arch

Pungi returns also src packages,
so we can get a src build architecture,
which is not a usable build arch.
This commit is contained in:
Martin Gracik 2010-11-08 16:09:04 +01:00
parent 08a752551a
commit 85c91cf6b2

View File

@ -480,7 +480,10 @@ class Lorax(BaseLoraxClass):
installed, available = self.yum.search("anaconda")
if available:
anaconda = available[0]
anaconda = available.pop(0)
# src is not a real arch
if anaconda.arch == "src":
anaconda = available.pop(0)
buildarch = anaconda.arch
else:
# fallback to the system architecture