Fix typo.
authorZac Medico <zmedico@gentoo.org>
Sun, 27 May 2007 22:00:56 +0000 (22:00 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 27 May 2007 22:00:56 +0000 (22:00 -0000)
svn path=/main/trunk/; revision=6647

pym/portage/output.py

index d2122e0b51bf1f1f22f7d8ec4b0a04e503b956d5..75e043483984079968b3457956b4d4efbe5f195b 100644 (file)
@@ -455,8 +455,8 @@ class ProgressBar(object):
                        self._maxval = maxval
                if value < 0:
                        value = 0
-               elif value > maxval:
-                       value = maxval
+               elif value > self._maxval:
+                       value = self._maxval
                self._curval = value
 
        def inc(self, n=1):