Red Hat Bugzilla – Bug 965131
[rfe] substituting $vars in mirrorlists
Last modified: 2014-09-30 19:41:24 EDT
It looks besides substituting variables in mirrorlist URLS and baseurls, Yum is able do $basearch and $releasever substitutions in the mirrorlists itself, e.g when one downloads mirrorlist containing the following entries:
It replaces all $releasever and $basearch with proper string before issuing a HTTP request to one of the mirrors.
Several approaches toward implementing this in librepo can be considers of which, I'd like to point out, a callback mechanism seems the least practical to me. Perhaps passing the handler list of substitutions beforehand?
Fixed in https://github.com/Tojaj/librepo/commit/a97530214cc39f1a63f51ca76baa9a8640d03bfb
Add option LRO_VARSUB.
Example of usage:
h = librepo.Handle()
h.varsub = [("releasever", "18"), ("basearch", "i386")]
Looks good. Tomas, could you roll a new release with this functionality included into Fedora rawhide please. librepo isn't really usable without LRO_VARSUB unless you like butchering your .repo files with sed :).
Hi, new build is done (http://koji.fedoraproject.org/koji/buildinfo?buildID=426150).
libsolv-0.3.0-5.git228d412.fc19, librepo-0.0.4-2.fc19, hawkey-0.3.14-1.git78b3aa0.fc19 has been submitted as an update for Fedora 19.
Package libsolv-0.3.0-5.git228d412.fc19, librepo-0.0.4-2.fc19, hawkey-0.3.14-1.git78b3aa0.fc19, dnf-0.3.8-2.git85524ae.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libsolv-0.3.0-5.git228d412.fc19 librepo-0.0.4-2.fc19 hawkey-0.3.14-1.git78b3aa0.fc19 dnf-0.3.8-2.git85524ae.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
libsolv-0.3.0-5.git228d412.fc19, librepo-0.0.4-2.fc19, hawkey-0.3.14-1.git78b3aa0.fc19, dnf-0.3.8-2.git85524ae.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.