[Yum-devel] [PATCH] RFC: Lazily get repo info
seth vidal
skvidal at linux.duke.edu
Thu Apr 26 04:04:08 UTC 2007
On Wed, 2007-04-25 at 18:16 -0400, seth vidal wrote:
> On Wed, 2007-04-25 at 18:06 -0400, James Bowes wrote:
> > 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.
> >
> > So I like this approach, but it does break API in that anyone who
> > accesses repoXML now has to worry about catching a RepoError. Probably
> > not a big deal, since if you can't get the repoXML you're pretty much
> > done for anyways.
> >
>
> Well, we broke that a little while ago, not with this patch.
>
> I just noticed it - before this patch applies as root run:
> yum clean all
>
> then as a user run:
>
> yum list available
>
> watch as the traceback ensues. I didn't notice it before but I'll get it
> cleaned up tonight.
>
nevermind - this was b/c of something else but it is nevertheless fixed.
-sv
More information about the Yum-devel
mailing list