[Yum-devel] [PATCH 3/9] TextMultiFileMeter: use 'text' instead of 'basename'.

Zdeněk Pavlas zpavlas at redhat.com
Mon Sep 26 16:06:19 UTC 2011


See also: TextMeter._do_update()
---
 urlgrabber/progress.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/urlgrabber/progress.py b/urlgrabber/progress.py
index 2a6894f..1de0abd 100644
--- a/urlgrabber/progress.py
+++ b/urlgrabber/progress.py
@@ -503,7 +503,7 @@ class TextMultiFileMeter(MultiFileMeter):
         self._lock.acquire()
         try:
             format = "%-30.30s %6.6s    %8.8s    %9.9s"
-            fn = meter.basename
+            fn = meter.text or meter.basename
             size = meter.last_amount_read
             fsize = format_number(size) + 'B'
             et = meter.re.elapsed_time()
-- 
1.7.4.4



More information about the Yum-devel mailing list