[PATCH 1/2] Support a 'ppc64' arch in iutil.getArch.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Bill Nottingham <notting@xxxxxxxxxx>
---
 iutil.py |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/iutil.py b/iutil.py
index 49509e9..1e652ec 100644
--- a/iutil.py
+++ b/iutil.py
@@ -635,8 +635,16 @@ def isX86(bits=None):
 
     return False
 
-def isPPC():
-    return os.uname()[4].startswith('ppc')
+def isPPC(bits=None):
+    if bits is None:
+        return os.uname()[4].startswith('ppc')
+    elif bits == 32:
+        if arch == 'ppc':
+            return True
+    elif bits == 64:
+        if arch == 'ppc64':
+            return True
+    return False
 
 def isS390():
     return os.uname()[4].startswith('s390')
@@ -655,8 +663,10 @@ def getArch():
         return 'i386'
     elif isX86(bits=64):
         return 'x86_64'
-    elif isPPC():
+    elif isPPC(bits=32):
         return 'ppc'
+    elif isPPC(bits=64):
+        return 'ppc64'
     elif isAlpha():
         return 'alpha'
     elif isSparc():
-- 
1.6.2.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux