[Yum-devel] Question on variable substitution/scope in yum 2.9.x config

seth vidal skvidal at linux.duke.edu
Mon Oct 2 12:03:34 UTC 2006


On Mon, 2006-10-02 at 10:56 +0200, Tim Lauridsen wrote:
> >
> > The old config seems to indeed work now, thanks. Just a slight 
> > thinko/typo in plugins code, causing it to traceback with plugins 
> > enabled:
> > -- 
> > [root at esdhcp18688 yum-2.9.8]# ./yummain.py list
> > Traceback (most recent call last):
> >   File "./yummain.py", line 201, in ?
> >     main(sys.argv[1:])
> >   File "./yummain.py", line 85, in main
> >     base.getOptionsConfig(args)
> >   File "/home/pmatilai/rpm/BUILD/yum-2.9.8/cli.py", line 199, in 
> > getOptionsConfig
> >     errorlevel=opts.errorlevel)
> >   File "/home/pmatilai/rpm/BUILD/yum-2.9.8/yum/__init__.py", line 123, 
> > in doConfigSetup
> >     startupconf.pluginconfpath)
> >   File "/home/pmatilai/rpm/BUILD/yum-2.9.8/yum/__init__.py", line 252, 
> > in doPluginSetup
> >     plugin_types, confpath)
> >   File "/home/pmatilai/rpm/BUILD/yum-2.9.8/yum/plugins.py", line 127, 
> > in __init__
> >     self._importplugins(types)
> >   File "/home/pmatilai/rpm/BUILD/yum-2.9.8/yum/plugins.py", line 168, 
> > in _importplugins
> >     self._loadplugin(modulefile, types)
> >   File "/home/pmatilai/rpm/BUILD/yum-2.9.8/yum/plugins.py", line 177, 
> > in _loadplugin
> >     conf = self._getpluginconf(modname)
> >   File "/home/pmatilai/rpm/BUILD/yum-2.9.8/yum/plugins.py", line 251, 
> > in _getpluginconf
> >     parser = config.IncludingConfigParser()
> > AttributeError: 'module' object has no attribute 'IncludingConfigParser'
> > -- 
> 
> I get this one too, i have committed a fix, so plugins are working again.
> 
ah, thanks Tim.

it might be worth removing the need for it entirely so that plugin
configurations also use the confpp mechanism.

-sv





More information about the Yum-devel mailing list