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

James Bowes jbowes at redhat.com
Wed Apr 25 22:06:55 UTC 2007


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.

-James

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070425/bc7c07ff/attachment.pgp 


More information about the Yum-devel mailing list