diff options
-rw-r--r-- | iw/progress_gui.py | 2 | ||||
-rw-r--r-- | packages.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/iw/progress_gui.py b/iw/progress_gui.py index 114672b47..c395bcdcb 100644 --- a/iw/progress_gui.py +++ b/iw/progress_gui.py @@ -95,7 +95,7 @@ class InstallProgressWindow_NEW (InstallWindow): self.sizeComplete = self.sizeComplete + (header[rpm.RPMTAG_SIZE]/1024) - self.filesComplete = self.filesComplete + (len(header[rpm.RPMTAG_FILENAMES])) + self.filesComplete = self.filesComplete + (len(header[rpm.RPMTAG_BASENAMES])) # check to see if we've started yet elapsedTime = timer.elapsed() 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 |