[Yum-devel] [PATCH] package basepath in yum
Dennis Gregorovic
dgregor at redhat.com
Wed Feb 1 18:30:33 UTC 2006
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 yum metadata supports an xml:base attribute of the location tag for
> > packages, which is saved as 'basepath' in the yum po after parsing.
> > However, as far as I can tell, basepath isn't used by yum.
> >
> > 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.
> >
> > Thoughts?
>
> How does this interact with mirrorlists?
>
> Paul
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.
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.
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.
-- Dennis
More information about the Yum-devel
mailing list