[Yum-devel] [PATCH] package basepath in yum

Paul Nasrat pnasrat at redhat.com
Thu Feb 2 22:23:42 UTC 2006


On Wed, 2006-02-01 at 13:30 -0500, Dennis Gregorovic wrote:
> On Wed, 2006-02-01 at 13:04 -0500, Paul Nasrat wrote:
> > On Wed, 2006-02-01 at 12:37 -0500, Dennis Gregorovic wrote:

> > > The attached patch causes yum to use the basepath when resolving the url
> > > of the package.  More precisely, if basepath is set then the url used is
> > > basepath + '/' + relativepath.  This makes the most sense to me. 

> > How does this interact with mirrorlists?

> The patch has downloadPkgs in yum/__init__.py calling repo.get with
> url=basepath, which in turn causes the mirrorlists to not be used and
> instead directly fetches the url + relativepath.

OK.  I'm just trying to think this through.  I think in general that
should be ok.

> So, the end effect is that if xml:base is specified for a package, then
> that url is used instead of the baseurl/mirrorlists value of the repo
> itself.  This essentially provides the capability to do 'virtual'
> repositories as discussed a couple months back on the metadata list.

Yes I can see that.  Seth gets back next week, this seems ok to me, so
if someone else (Menno?) ack's I'll commit.

> Also, since anaconda doesn't use the yum cli path that triggers the
> changes in the patch, I don't think that this will conflict with the
> xml:base usage in anaconda for specifying CD location.  

I'm going to be merging CD support into yum so everyone can benefit, but
this should work ok.

Paul




More information about the Yum-devel mailing list