Blame SOURCES/pyparted-3.9-aarch64.patch

02fed1
diff -up pyparted-3.9/src/parted/__init__.py.aarch64 pyparted-3.9/src/parted/__init__.py
02fed1
--- pyparted-3.9/src/parted/__init__.py.aarch64	2014-01-23 17:28:28.370005898 -0500
02fed1
+++ pyparted-3.9/src/parted/__init__.py	2014-01-23 17:57:51.257702523 -0500
02fed1
@@ -275,7 +275,8 @@ archLabels = {'i386': ['msdos', 'gpt'],
02fed1
               'sparc': ['sun'],
02fed1
               'ia64': ['msdos', 'gpt'],
02fed1
               'ppc': ['msdos', 'mac', 'amiga', 'gpt'],
02fed1
-              'x86_64': ['msdos', 'gpt']}
02fed1
+              'x86_64': ['msdos', 'gpt'],
02fed1
+              'aarch64': ['msdos', 'gpt']}
02fed1
 
02fed1
 # Adapted from:
02fed1
 # http://stackoverflow.com/questions/922550/how-to-mark-a-global-as-deprecated-in-python
02fed1
@@ -309,9 +310,9 @@ def Deprecated(mod, deprecated={}):
02fed1
 __archLabels = (('amiga', 'ppc(64)?$'),
02fed1
                 ('bsd', 'alpha$'),
02fed1
                 ('dasd', 's390x?$'),
02fed1
-                ('gpt', 'i[3-6]86$|x86_64$|ia64$|ppc(64)?$'),
02fed1
+                ('gpt', 'i[3-6]86$|x86_64$|ia64$|ppc(64)?$|aarch64$'),
02fed1
                 ('mac', 'ppc(64)?$'),
02fed1
-                ('msdos', 'i[3-6]86$|x86_64$|s390x?$|alpha$|ia64$|ppc(64)?$'),
02fed1
+                ('msdos', 'i[3-6]86$|x86_64$|s390x?$|alpha$|ia64$|ppc(64)?$|aarch64$'),
02fed1
                 ('sun', 'sparc(64)?$'))
02fed1
 
02fed1
 def getLabels(arch=None):
02fed1
diff -up pyparted-3.9/tests/test_parted_parted.py.aarch64 pyparted-3.9/tests/test_parted_parted.py
02fed1
--- pyparted-3.9/tests/test_parted_parted.py.aarch64	2011-06-27 11:24:21.000000000 -0400
02fed1
+++ pyparted-3.9/tests/test_parted_parted.py	2014-01-23 17:59:09.640810266 -0500
02fed1
@@ -59,6 +59,7 @@ class GetLabelsTestCase(unittest.TestCas
02fed1
         self.assertSetEqual(parted.getLabels('ppc64'), {'amiga', 'gpt', 'mac', 'msdos'})
02fed1
         self.assertSetEqual(parted.getLabels('alpha'), {'bsd', 'msdos'})
02fed1
         self.assertSetEqual(parted.getLabels('ia64'), {'gpt', 'msdos'})
02fed1
+        self.assertSetEqual(parted.getLabels('aarch64'), {'gpt', 'msdos'})
02fed1
 
02fed1
 class GetDeviceTestCase(RequiresDeviceNode):
02fed1
     def runTest(self):