From 2d2a3e80838b5648b463a2efa31177425ba3ec81 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 8 Aug 2013 09:32:05 -0500 Subject: [PATCH] make sure mac support is only enabled on x86 --- src/pypungi/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 2c2f0e8a..893874d0 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -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