diff options
author | Matt Wilson <msw@redhat.com> | 2000-01-06 15:00:40 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-01-06 15:00:40 +0000 |
commit | 77e10526955536dcc65b8fc484360a2e634f649e (patch) | |
tree | 3768427b6362cd60c99c1b4cb00f4aa1a5cf21a7 /comps.py | |
parent | 2f5364beda5b899fccb1d4d95e378db0ae1a545b (diff) | |
download | anaconda-77e10526955536dcc65b8fc484360a2e634f649e.tar.gz anaconda-77e10526955536dcc65b8fc484360a2e634f649e.tar.xz anaconda-77e10526955536dcc65b8fc484360a2e634f649e.zip |
merge from Alpha/SPARC branch
Diffstat (limited to 'comps.py')
-rw-r--r-- | comps.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,6 @@ import sys import rpm +import os from string import * import types import iutil @@ -175,6 +176,9 @@ class ComponentSet: def readCompsFile(self, filename, packages): arch = iutil.getArch() + arch2 = None + if arch == "sparc" and os.uname ()[4] == "sparc64": + arch2 = "sparc64" file = urllib.urlopen(filename) lines = file.readlines() @@ -203,7 +207,7 @@ class ComponentSet: archList = split(archList) found = 0 for n in archList: - if (n == arch): + if n == arch or (arch2 and n == arch2): found = 1 break if ((found and skipIfFound) or |