[Yum-devel] [PATCH] fix pylint error ************* Module yum.yumRepo E0602:1360:YumRepository._commonRetrieveDataMD: Undefined variable 'download_no_size'

Seth Vidal skvidal at fedoraproject.org
Tue Oct 20 04:58:56 UTC 2009



On Tue, 20 Oct 2009, Tim Lauridsen wrote:

> ---
> yum/yumRepo.py |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/yum/yumRepo.py b/yum/yumRepo.py
> index b3f502e..980adf5 100644
> --- a/yum/yumRepo.py
> +++ b/yum/yumRepo.py
> @@ -1357,7 +1357,7 @@ class YumRepository(Repository, config.RepoConf):
>         local_size  = 0
>         for (ndata, nmdtype) in downloading_with_size: # Get total size...
>             if ndata.size is None:
> -                download_no_size.append((ndata, nmdtype))
> +                downloading_no_size.append((ndata, nmdtype))
>                 continue
>             remote_size += int(ndata.size)

ACK

-sv



More information about the Yum-devel mailing list