summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Fedora Unity) <kanarip@fedoraunity.org>2009-04-08 15:24:09 (GMT)
committerJeroen van Meeuwen (Fedora Unity) <kanarip@fedoraunity.org>2009-04-08 15:24:09 (GMT)
commit247f74eb5c04c42a38ce0b84a47995f2cb56cbcf (patch)
treee60c381a08ae95b1ea25e0e98c9bfdeaa0f272b2
parent49b71602d68fe69be0333cad419a71df3b1da994 (diff)
downloadrevisor-247f74eb5c04c42a38ce0b84a47995f2cb56cbcf.zip
revisor-247f74eb5c04c42a38ce0b84a47995f2cb56cbcf.tar.gz
revisor-247f74eb5c04c42a38ce0b84a47995f2cb56cbcf.tar.xz
Improve the reporting of installedsize / archivesize to the GUI
-rw-r--r--revisor/base.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/revisor/base.py b/revisor/base.py
index ec0cb77..812d4cc 100644
--- a/revisor/base.py
+++ b/revisor/base.py
@@ -1436,7 +1436,12 @@ class RevisorBase:
pbar.set_fraction(total/current)
self.cfg.payload_installmedia = packagesize
- self.cfg.payload_livemedia = archivesize + installedsize
+ if archivesize > installedsize:
+ self.cfg.payload_livemedia = archivesize
+ elif installedsize > archivesize:
+ self.cfg.payload_livemedia = installedsize
+ else:
+ self.cfg.payload_livemedia = installedsize
self.log.debug(_("Total size of all packages (archivesize): %s %s") % revisor.misc.size_me(archivesize), level=4)
self.log.debug(_("Total size of all packages, (installedsize): %s %s") % revisor.misc.size_me(installedsize), level=4)