diff options
-rw-r--r-- | yuminstall.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yuminstall.py b/yuminstall.py index b606af37a..3eb3c0ce8 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -200,10 +200,9 @@ class AnacondaCallback: os.unlink(fn) except OSError, e: log.debug("unable to remove file %s" %(e,)) - self.inProgressPo = None self.donepkgs += 1 - self.doneSize += hdr['size']/1024.0 + self.doneSize += self.inProgressPo.returnSimple("installedsize") / 1024.0 self.doneFiles += len(hdr[rpm.RPMTAG_BASENAMES]) self.progress.set_label("") @@ -212,6 +211,8 @@ class AnacondaCallback: self.progress.set_fraction(float(self.doneSize / self.totalSize)) self.progress.processEvents() + self.inProgressPo = None + # FIXME: we should probably integrate this into the progress bar # and actually show progress on cleanups..... elif what in (rpm.RPMCALLBACK_UNINST_START, |