make sure mac support is only enabled on x86

This commit is contained in:
Dennis Gilmore 2013-08-08 09:32:05 -05:00
parent cd75bc4875
commit 2d2a3e8083
1 changed files with 7 additions and 1 deletions

View File

@ -979,12 +979,18 @@ class Pungi(pypungi.PungiBase):
self.ayum.arch.setup_arch('ppc64')
self.ayum.compatarch = 'ppc64'
# Only supported mac hardware is x86 make sure we only enable mac support on arches that need it
if self.config.get('pungi', 'arch') in ['i386', 'i686', 'x86_64']:
domacboot = True
else:
domacboot = False
# run the command
lorax = pylorax.Lorax()
lorax.configure()
lorax.run(self.ayum, product=product, version=version, release=release,
variant=variant, bugurl=bugurl, isfinal=isfinal,
variant=variant, bugurl=bugurl, isfinal=isfinal, domacboot=domacboot,
workdir=workdir, outputdir=outputdir)
# write out the tree data for snake