From 76c89414568fac7511e1238539b5d7b098ea33de Mon Sep 17 00:00:00 2001 From: Mark Hamzy Date: Tue, 25 Mar 2014 15:35:40 -0500 Subject: [PATCH] support ppc64le in pungi Add support for the ppc64le architecture in pungi. --- src/pypungi/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 7595b4e3..c8762926 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -1309,6 +1309,9 @@ class Pungi(pypungi.PungiBase): if self.tree_arch == 'ppc64': self.ayum.arch.setup_arch('ppc64') self.ayum.compatarch = 'ppc64' + elif self.tree_arch == 'ppc64le': + self.ayum.arch.setup_arch('ppc64le') + self.ayum.compatarch = 'ppc64le' # Only supported mac hardware is x86 make sure we only enable mac support on arches that need it if self.tree_arch in ['x86_64']: @@ -1361,7 +1364,7 @@ class Pungi(pypungi.PungiBase): os.path.walk(os.path.join(self.topdir, 'images'), getsum, self.topdir + '/') # Capture PPC images - if self.tree_arch in ['ppc', 'ppc64']: + if self.tree_arch in ['ppc', 'ppc64', 'ppc64le']: os.path.walk(os.path.join(self.topdir, 'ppc'), getsum, self.topdir + '/') # Get a checksum of repomd.xml since it has within it sums for other files