summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2007-04-25 15:28:31 +0000
committerPaul Nasrat <pnasrat@redhat.com>2007-04-25 15:28:31 +0000
commit28615c0ceb7863672b7cc619863af9fef5e28397 (patch)
tree7d93f7cb82364c4a63c2d84e55122c4104df1e10 /iutil.py
parent354840ade2995d99aff3c963c1a967c6557aee8b (diff)
downloadanaconda-28615c0ceb7863672b7cc619863af9fef5e28397.tar.gz
anaconda-28615c0ceb7863672b7cc619863af9fef5e28397.tar.xz
anaconda-28615c0ceb7863672b7cc619863af9fef5e28397.zip
Add support for spufs (#237725)
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/iutil.py b/iutil.py
index b501618df..662870cfa 100644
--- a/iutil.py
+++ b/iutil.py
@@ -361,6 +361,26 @@ def getPPCMacBook():
return 1
return 0
+cell = None
+def isCell():
+ global cell
+ if cell is not None:
+ return cell
+
+ cell = False
+ if rhpl.getArch() != "ppc":
+ return cell
+
+ f = open('/proc/cpuinfo', 'r')
+ lines = f.readlines()
+ f.close()
+
+ for line in lines:
+ if not string.find(line, 'Cell') == -1:
+ cell = True
+
+ return cell
+
mactel = None
# return True if this is one of the Intel-based Apple Macs
def isMactel():