Red Hat Bugzilla – Bug 237425
Yum doesn't read options set by plugins in repository configuration files
Last modified: 2014-01-21 17:57:48 EST
Description of problem:
In fedora-development.repo, we have the line:
In the yum-presto plugin, there's the following code:
# Set up repository specific deltarpm url and mirrorlist
config.RepoConf.deltaurl = config.UrlListOption()
Later, in postreposetup_hook, we try to access this configuration with:
where repo is an active repository (we actually loop through all of them).
None for all active repositories (including development)
Version-Release number of selected component (if applicable):
I suspect this is related to
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=236512. I would guess that
the configuration options aren't getting set before postreposetup_hook (along
with the rest of the repository information).
James -- this is due to some of the metaclass magic... we only set up the
options that get looked at for the config objects when the classes are created
as opposed to letting plugins add options to the classes before they're
I've reverted the metaclass changes to the config module, so everything will be
as once it was.