[Yum-devel] Setting a custom plugin configuration path

Menno Smits menno-yum at freshfoo.com
Thu May 18 09:10:07 UTC 2006


Mihai Ibanescu wrote:
> Hello,
> 
> Looking at yum 2.6.1...
> 
> Even though I could change the directory for the plugin modules themselves,
> the path to the plugin configuration directory seems to be hardcoded in
> plugins.py:
> 
>     def _getpluginconf(self, modname):
>         '''Parse the plugin specific configuration file and return a
>         IncludingConfigParser instance representing it. Returns None if there
>         was an error reading or parsing the configuration file.
>         '''
>         #XXX: should this use installroot?
>         conffilename = os.path.join('/etc/yum/pluginconf.d', modname+'.conf')
> 
> 
> I would suggest to create a configuration option for it. Attached patch.
> 
> Comments?

Seems reasonable. Thanks for the patch.

I'm actually working on some stuff right now that will affect this. I'll 
merge your patch with the work I'm doing. It should hopefully go in 
within the next week.

Thanks,
Menno



More information about the Yum-devel mailing list