Blame SOURCES/0001-support-ppc64le-in-pyparted.patch

b10e8e
From d8a1ed4a28dfb8541b95b3635660dfe18fa37a19 Mon Sep 17 00:00:00 2001
b10e8e
From: root <hamzy@us.ibm.com>
b10e8e
Date: Thu, 8 May 2014 15:32:51 -0500
b10e8e
Subject: [PATCH 1/7] support ppc64le in pyparted
b10e8e
b10e8e
Add ppc64le support to pyparted
b10e8e
---
b10e8e
 src/parted/__init__.py      | 6 ++++--
b10e8e
 tests/test_parted_parted.py | 1 +
b10e8e
 2 files changed, 5 insertions(+), 2 deletions(-)
b10e8e
b10e8e
diff --git a/src/parted/__init__.py b/src/parted/__init__.py
b10e8e
index 8208c75..ae7bc4b 100644
b10e8e
--- a/src/parted/__init__.py
b10e8e
+++ b/src/parted/__init__.py
b10e8e
@@ -278,6 +278,8 @@ archLabels = {'i386': ['msdos', 'gpt'],
b10e8e
               'sparc': ['sun'],
b10e8e
               'ia64': ['msdos', 'gpt'],
b10e8e
               'ppc': ['msdos', 'mac', 'amiga', 'gpt'],
b10e8e
+              'ppc64': ['msdos', 'mac', 'amiga', 'gpt'],
b10e8e
+              'ppc64le': ['msdos', 'gpt'],
b10e8e
               'x86_64': ['msdos', 'gpt'],
b10e8e
               'aarch64': ['msdos', 'gpt']}
b10e8e
 
b10e8e
@@ -313,9 +315,9 @@ def Deprecated(mod, deprecated={}):
b10e8e
 __archLabels = (('amiga', 'ppc(64)?$'),
b10e8e
                 ('bsd', 'alpha$'),
b10e8e
                 ('dasd', 's390x?$'),
b10e8e
-                ('gpt', 'i[3-6]86$|x86_64$|ia64$|ppc(64)?$|aarch64$'),
b10e8e
+                ('gpt', 'i[3-6]86$|x86_64$|ia64$|ppc(64|64le)?$|aarch64$'),
b10e8e
                 ('mac', 'ppc(64)?$'),
b10e8e
-                ('msdos', 'i[3-6]86$|x86_64$|s390x?$|alpha$|ia64$|ppc(64)?$|aarch64$'),
b10e8e
+                ('msdos', 'i[3-6]86$|x86_64$|s390x?$|alpha$|ia64$|ppc(64|64le)?$|aarch64$'),
b10e8e
                 ('sun', 'sparc(64)?$'))
b10e8e
 
b10e8e
 def getLabels(arch=None):
b10e8e
diff --git a/tests/test_parted_parted.py b/tests/test_parted_parted.py
b10e8e
index 29aeb10..b2db935 100755
b10e8e
--- a/tests/test_parted_parted.py
b10e8e
+++ b/tests/test_parted_parted.py
b10e8e
@@ -57,6 +57,7 @@ class GetLabelsTestCase(unittest.TestCase):
b10e8e
         self.assertSetEqual(parted.getLabels('sparc64'), {'sun'})
b10e8e
         self.assertSetEqual(parted.getLabels('ppc'), {'amiga', 'gpt', 'mac', 'msdos'})
b10e8e
         self.assertSetEqual(parted.getLabels('ppc64'), {'amiga', 'gpt', 'mac', 'msdos'})
b10e8e
+        self.assertSetEqual(parted.getLabels('ppc64le'), {'gpt', 'msdos'})
b10e8e
         self.assertSetEqual(parted.getLabels('alpha'), {'bsd', 'msdos'})
b10e8e
         self.assertSetEqual(parted.getLabels('ia64'), {'gpt', 'msdos'})
b10e8e
         self.assertSetEqual(parted.getLabels('aarch64'), {'gpt', 'msdos'})
b10e8e
-- 
b10e8e
1.8.3.1
b10e8e