Logo Search packages:      
Sourcecode: yum version File versions  Download package

def yum::YumBase::doPluginSetup (   self,
  optparser = None,
  types = None 
)

Initialise and enable yum plugins. 

If plugins are going to be used, this should be called soon after
doConfigSetup() has been called.

@param optparser: The OptionParser instance for this run (optional)
@param types: A sequence specifying the types of plugins to load.
    This should be sequnce containing one or more of the
    yum.plugins.TYPE_...  constants. If None (the default), all plugins
    will be loaded.

Definition at line 143 of file __init__.py.

00143                                                        :
        '''Initialise and enable yum plugins. 

        If plugins are going to be used, this should be called soon after
        doConfigSetup() has been called.

        @param optparser: The OptionParser instance for this run (optional)
        @param types: A sequence specifying the types of plugins to load.
            This should be sequnce containing one or more of the
            yum.plugins.TYPE_...  constants. If None (the default), all plugins
            will be loaded.
        '''
        # Load plugins first as they make affect available config options
        self.plugins = plugins.YumPlugins(self, self.conf.pluginpath,
                optparser, types)

        # Process options registered by plugins
        self.plugins.parseopts(self.conf, self.repos.findRepos('*'))

        # Initialise plugins
        self.plugins.run('init')

    def doTsSetup(self):


Generated by  Doxygen 1.6.0   Back to index