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

Orion Poplawski orion at cora.nwra.com
Thu Jun 14 16:18:57 UTC 2012


On 06/13/2012 05:14 AM, Zdeněk Pavlas wrote:
> 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()
>

Confirmed fixes it for me.  Thanks!

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder Office                  FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com




More information about the Yum-devel mailing list