summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-04-30 21:50:52 +0000
committerErik Troan <ewt@redhat.com>1999-04-30 21:50:52 +0000
commitca15edceb8597ba2343bfc81d44df0a433af9578 (patch)
tree1aef95efa3c9ec222ac7aaba3ab0dcde8d26b6cd /anaconda
parent6bc3dfe1a1a4ec88e052a4649fee923017763aa5 (diff)
downloadanaconda-ca15edceb8597ba2343bfc81d44df0a433af9578.tar.gz
anaconda-ca15edceb8597ba2343bfc81d44df0a433af9578.tar.xz
anaconda-ca15edceb8597ba2343bfc81d44df0a433af9578.zip
move filename generation to method
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda7
1 files changed, 4 insertions, 3 deletions
diff --git a/anaconda b/anaconda
index c0a4c387b..22f52a6dc 100755
--- a/anaconda
+++ b/anaconda
@@ -53,9 +53,10 @@ import rpm
def cb(what, amount, total, key, data):
if (what == rpm.RPMCALLBACK_INST_OPEN_FILE):
- (h, key) = key
+ (h, method) = key
data.setPackage(h[rpm.RPMTAG_NAME])
- d = os.open("/mnt/redhat/test/6.0/i386/RedHat/RPMS/" + key, os.O_RDONLY)
+ fn = method.getFilename(h)
+ d = os.open(fn, os.O_RDONLY)
return d
if (mode == 'g' and not os.environ.has_key('DISPLAY')):
@@ -93,7 +94,7 @@ db = rpm.opendb(1, rootPath)
ts = rpm.TransactionSet(rootPath, db)
for p in comps.selected():
- ts.add(p.h, (p.h, p.h[1000000]))
+ ts.add(p.h, (p.h, method))
ts.order()
p = intf.packageProgessWindow()