[yum-commits] urlgrabber/progress.py

James Antill james at osuosl.org
Thu May 9 20:40:26 UTC 2013


 urlgrabber/progress.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bd308364f44db0a59186b332d16dd91cfd772774
Author: James Antill <james at and.org>
Date:   Thu May 9 16:39:39 2013 -0400

    Workaround progress "!!!" end for file:// repos.

diff --git a/urlgrabber/progress.py b/urlgrabber/progress.py
index 077fd99..b456a0c 100644
--- a/urlgrabber/progress.py
+++ b/urlgrabber/progress.py
@@ -219,7 +219,7 @@ def _term_add_bar(tl, bar_max_length, pc):
     return tl.add(' [%-*.*s]' % (blen, blen, bar))
 
 def _term_add_end(tl, osize, size):
-    if osize is not None:
+    if osize: # osize should be None or >0, but that's been broken.
         if size > osize: # Is ??? better? Really need something to say < vs >.
             return tl.add(' !!! '), True
         elif size != osize:


More information about the Yum-commits mailing list