[Yum-devel] [PATCH] parallel_wait: auto disable progress. BZ 831291.

Zdeněk Pavlas zpavlas at redhat.com
Wed Jun 13 11:14:37 UTC 2012


Check if progress bar has been disabled for any file.
If so, disable the multi progress too.
---
 urlgrabber/grabber.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 799f4de..073d41d 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -2127,6 +2127,9 @@ def parallel_wait(meter = 'text'):
         for opts in _async_queue:
             count += 1
             total += opts.size
+            if not opts.progress_obj:
+                meter = None
+    if meter:
         if meter == 'text':
             from progress import TextMultiFileMeter
             meter = TextMultiFileMeter()
-- 
1.7.4.4



More information about the Yum-devel mailing list