summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-07-30 16:07:40 +0000
committerMike Fulbright <msf@redhat.com>2002-07-30 16:07:40 +0000
commitaaf15ef3b12f83ee327e75413fa518a971d04858 (patch)
tree9dbc42ae13db82a98ab8d125f58c5f63bead1256 /harddrive.py
parent899d22558e87d185af81de640032a17393d2e058 (diff)
downloadanaconda-aaf15ef3b12f83ee327e75413fa518a971d04858.tar.gz
anaconda-aaf15ef3b12f83ee327e75413fa518a971d04858.tar.xz
anaconda-aaf15ef3b12f83ee327e75413fa518a971d04858.zip
fix hdtree
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py26
1 files changed, 8 insertions, 18 deletions
diff --git a/harddrive.py b/harddrive.py
index 5a2e30100..5cca25b29 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -66,29 +66,19 @@ class OldHardDriveInstallMethod(InstallMethod):
return cs
def getFilename(self, h, timer):
- return self.tree + self.path + "/RedHat/RPMS/" + self.fnames[h]
+ return self.tree + self.path + "/RedHat/RPMS/" + h[FILENAME]
def readHeaders(self):
self.mountMedia()
- hl = []
- path = self.tree + self.path + "/RedHat/RPMS"
- for n in os.listdir(path):
- fd = os.open(path + "/" + n, 0)
- try:
- (h, isSource) = rpm.headerFromPackage(fd)
- if (h and not isSource):
- self.fnames[h] = n
- hl.append(h)
- except:
- pass
- os.close(fd)
-
+ hl = HeaderListFromFile(self.tree + "/RedHat/base/hdlist")
self.umountMedia()
- return HeaderList(hl)
-
+ return hl
+
def mergeFullHeaders(self, hdlist):
- # since we read headers from the disk, we don't need to do this
- pass
+ self.mountMedia()
+ hdlist.mergeFullHeaders(self.tree + "/RedHat/base/hdlist2")
+ self.umountMedia()
+
def systemMounted(self, fsset, chroot, selected):
self.mountMedia()