diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2007-04-25 15:28:31 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2007-04-25 15:28:31 +0000 |
commit | 28615c0ceb7863672b7cc619863af9fef5e28397 (patch) | |
tree | 7d93f7cb82364c4a63c2d84e55122c4104df1e10 /iutil.py | |
parent | 354840ade2995d99aff3c963c1a967c6557aee8b (diff) | |
download | anaconda-28615c0ceb7863672b7cc619863af9fef5e28397.tar.gz anaconda-28615c0ceb7863672b7cc619863af9fef5e28397.tar.xz anaconda-28615c0ceb7863672b7cc619863af9fef5e28397.zip |
Add support for spufs (#237725)
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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(): |