summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-23 23:05:27 +0000
committerMatt Wilson <msw@redhat.com>1999-08-23 23:05:27 +0000
commitf1de6992b42719cbc1ce90077e8a059f4aa4ce0d (patch)
tree01b51d7f58117ead5ade01a772c557ff53e9c338 /harddrive.py
parent1dfeb221649f803f3064f291e9869bb077a2dacf (diff)
downloadanaconda-f1de6992b42719cbc1ce90077e8a059f4aa4ce0d.tar.gz
anaconda-f1de6992b42719cbc1ce90077e8a059f4aa4ce0d.tar.xz
anaconda-f1de6992b42719cbc1ce90077e8a059f4aa4ce0d.zip
remember filenames
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/harddrive.py b/harddrive.py
index a8489a207..e24d403ed 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -19,7 +19,7 @@ class InstallMethod:
return cs
def getFilename(self, h):
- return self.tree + "/RedHat/RPMS/" + h[FILENAME]
+ return self.tree + "/RedHat/RPMS/" + self.fnames[h]
def readHeaders(self):
isys.mount('/tmp/' + self.device, "/tmp/hdimage");
@@ -29,6 +29,7 @@ class InstallMethod:
if (n[len(n) - 4:] == '.rpm'):
fd = os.open(path + "/" + n, 0)
(h, isSource) = rpm.headerFromPackage(fd)
+ self.fnames[h] = n
hl.append(h)
os.close(fd)
@@ -59,3 +60,4 @@ class InstallMethod:
self.device = device
self.path = path
isys.makeDevInode(device, '/tmp/' + device)
+ self.fnames = {}