summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-01-09 20:59:06 +0000
committerJeremy Katz <katzj@redhat.com>2004-01-09 20:59:06 +0000
commitb31771e526ef41b222fcbfea9c73c1b3c360a35b (patch)
treee976ff9f95f4430cb464c93d31839f8f4f083280 /packages.py
parent8b1792b725bd46475cb2584ff141f443aa63ab66 (diff)
downloadanaconda-b31771e526ef41b222fcbfea9c73c1b3c360a35b.tar.gz
anaconda-b31771e526ef41b222fcbfea9c73c1b3c360a35b.tar.xz
anaconda-b31771e526ef41b222fcbfea9c73c1b3c360a35b.zip
RPMTAG_FILENAMES doesn't seem to work correctly anymore. since we just need
to know how many files there are, RPMTAG_BASENAMES works just as well instead of having to do the filename expansion (and thus using more memory)
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages.py b/packages.py
index 0262081da..5ed6f564b 100644
--- a/packages.py
+++ b/packages.py
@@ -789,7 +789,7 @@ def doInstall(method, id, intf, instPath):
ts.addInstall(p.hdr, p.hdr, how)
total = total + 1
totalSize = totalSize + (p[rpm.RPMTAG_SIZE] / 1024)
- totalFiles = totalFiles + len(p[rpm.RPMTAG_FILENAMES])
+ totalFiles = totalFiles + len(p[rpm.RPMTAG_BASENAMES])
i = i + 1
# HACK - dont overload progress bar with useless requests