[Yum-devel] [PATCH] run _repos.doSetup() at least once. BZ 885159

James Antill james at fedoraproject.org
Mon Dec 10 17:59:35 UTC 2012


On Mon, 2012-12-10 at 16:23 +0100, Zdeněk Pavlas wrote:
> ---
>  yum/__init__.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/yum/__init__.py b/yum/__init__.py
> index 63053af..1ff6044 100644
> --- a/yum/__init__.py
> +++ b/yum/__init__.py
> @@ -700,7 +700,7 @@ class YumBase(depsolve.Depsolve):
>                  self.repos.setCache(prerepoconf.cache)
>  
> 
> -        if doSetup:
> +        if doSetup or not self._repos._setup:
>              if (hasattr(urlgrabber, 'grabber') and
>                  hasattr(urlgrabber.grabber, 'pycurl')):
>                  # Must do basename checking, on cert. files...

 NAK. Doing this means that we can't access yb.repos without the repos.
going through automatic setup, which affects any calls to
yb.repos.listEnabled() or conduit.getRepos(). Pretty sure this will be
worse than not fixing 885159.

 My guess is that we'll have to move the basename checking into
_repos.doSetup().



More information about the Yum-devel mailing list