summaryrefslogtreecommitdiffstats
path: root/comps.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-07 22:45:26 +0000
committerMatt Wilson <msw@redhat.com>1999-09-07 22:45:26 +0000
commit964b12982b2078ee53bfa45026125703a2a31b7d (patch)
tree58be92c6592d95ea315f9c4a63153a6081661f0c /comps.py
parent0e6195f473604ee66f2df999e0432738319293e9 (diff)
downloadanaconda-964b12982b2078ee53bfa45026125703a2a31b7d.tar.gz
anaconda-964b12982b2078ee53bfa45026125703a2a31b7d.tar.xz
anaconda-964b12982b2078ee53bfa45026125703a2a31b7d.zip
fixes for alpha, fstab reading
Diffstat (limited to 'comps.py')
-rw-r--r--comps.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/comps.py b/comps.py
index abb5650c6..b8ed96cb1 100644
--- a/comps.py
+++ b/comps.py
@@ -1,6 +1,7 @@
import rpm
from string import *
import types
+import iutil
import urllib
class Package:
@@ -110,7 +111,8 @@ class ComponentSet:
def keys(self):
return self.compsDict.keys()
- def readCompsFile(self, arch, filename, packages):
+ def readCompsFile(self, filename, packages):
+ arch = iutil.getArch ()
file = urllib.urlopen(filename)
lines = file.readlines()
@@ -184,7 +186,7 @@ class ComponentSet:
return s
- def __init__(self, arch, file, hdlist):
+ def __init__(self, file, hdlist):
self.list = []
self.packages = hdlist
- self.readCompsFile(arch, file, self.packages)
+ self.readCompsFile(file, self.packages)