[Yum-devel] [PATCH] Don't fail when pre-caching filelists. BZ 769864.

James Antill james at fedoraproject.org
Thu Jan 12 14:45:36 UTC 2012


On Thu, 2012-01-12 at 15:17 +0100, Zdeněk Pavlas wrote:
> 'yum makecache' calls repos.populateSack(md, cacheonly=1)
> for various non-primary metadata.  If this fails, we should
> disable that repo and not exit(1).
> 
> This partially reverts commit 0ff54c5ae558:
> 
> > make sure we're only skipping the exception if we are doing
> > a primary or global setup
> 
> I believe this is not necessary.  When depsolver needs filelist,
> it calls repo.populate() directly, so always gets the exception.

 There's also doSackFilelistPopulate(). And there's any random yum code
that is calling populateSack() directly.

 On the other hand I can't think of a reason to not change makecache to
just call:

            base.repos.populateSack(mdtype='all', cacheonly=1)

...and then we don't have to worry about it.



More information about the Yum-devel mailing list