aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Cody <codeman@gentoo.org>2008-05-11 00:50:23 +0000
committerPreston Cody <codeman@gentoo.org>2008-05-11 00:50:23 +0000
commit053bdb3f5bca3b3f74f4e04a6de26415a869476f (patch)
tree6c366562eadde1679ca6d352edf0dae664317359
parentfixing bug 220275 by moving the cancel check (diff)
downloadgli-053bdb3f5bca3b3f74f4e04a6de26415a869476f.tar.gz
gli-053bdb3f5bca3b3f74f4e04a6de26415a869476f.tar.bz2
gli-053bdb3f5bca3b3f74f4e04a6de26415a869476f.zip
fix to progress bar overflow bug.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@1899 f8877401-5920-0410-a79b-8e2d7e04ca0d
-rw-r--r--src/GLIPortage.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GLIPortage.py b/src/GLIPortage.py
index b60a73a..fd5a200 100644
--- a/src/GLIPortage.py
+++ b/src/GLIPortage.py
@@ -288,7 +288,10 @@ class GLIPortage(object):
def emerge(self, packages, grp_install=False, add_to_world=True):
if isinstance(packages, str):
packages = packages.split()
- self._cc.addNotification("progress", (0, "Calculating dependencies for " + " ".join(packages)))
+ if len(packages) > 1:
+ self._cc.addNotification("progress", (0, "Calculating dependencies for your packages"))
+ else:
+ self._cc.addNotification("progress", (0, "Calculating dependencies for " + " ".join(packages)))
pkglist = self.get_deps(packages, grp_install)
if self._debug: self._logger.log("install_packages(): pkglist is " + str(pkglist))
for i, pkg in enumerate(pkglist):