summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-01-06 15:00:40 +0000
committerMatt Wilson <msw@redhat.com>2000-01-06 15:00:40 +0000
commit77e10526955536dcc65b8fc484360a2e634f649e (patch)
tree3768427b6362cd60c99c1b4cb00f4aa1a5cf21a7 /comps.py
parent2f5364beda5b899fccb1d4d95e378db0ae1a545b (diff)
downloadanaconda-77e10526955536dcc65b8fc484360a2e634f649e.tar.gz
anaconda-77e10526955536dcc65b8fc484360a2e634f649e.tar.xz
anaconda-77e10526955536dcc65b8fc484360a2e634f649e.zip
merge from Alpha/SPARC branch
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/comps.py b/comps.py
index 107223c77..2132e0e69 100644
--- a/comps.py
+++ b/comps.py
@@ -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