[Yum-devel] [PATCH] RFC: Lazily get repo info

seth vidal skvidal at linux.duke.edu
Wed Apr 25 22:10:56 UTC 2007


On Wed, 2007-04-25 at 18:09 -0400, seth vidal wrote:
> On Wed, 2007-04-25 at 17:58 -0400, Jeremy Katz wrote:
> > There are currently a few problems with enabling/disabling repos with
> > the move to the RepoStorage object being a property.  The biggest one is
> > if you have a repo with a buggy mirror list and do
> >   yum --disablerepo=broken-repo [...]
> > then we still try to fetch the mirror list and things blow up.  The
> > attached changes things so that the repo is a little bit more lazily set
> > up and fixes that problem.  It doesn't look like this will cause any
> > problems for any API users either, but wanted to get more eyes on it
> > before committing.
> 
> this looks like the right thing to do. It keeps yum from grabbing the
> repomd.xml before it is really necessary so it won't screw up systems
> where that url is inaccessible.
> 

as per discussion on jabber: probably add an fset and an fdel to the
property so we can reset the repo object if need be.

-sv





More information about the Yum-devel mailing list