[yum-cvs] yum cli.py,1.175,1.176

Menno Smits mjs at login.linux.duke.edu
Sun Mar 27 11:51:39 UTC 2005


Update of /home/groups/yum/cvs/yum
In directory login:/tmp/cvs-serv19575

Modified Files:
	cli.py 
Log Message:
More plugin related updates:
    - rearranged plugin initialisation:
        - YumBase.doPluginSetup() now exists and must be called to initialise
          plugins. 
        - Yum's config and command line args are now parsed before plugins are
          initialised. This fixes the problems with the debug level being
          ignored for early plugin related output.
        - refactored the plugin config registration stuff so its handled
          outside of config.py (much cleaner).
        - because yum config is parsed before plugin initialisation, a separate
          plugin.conf is no longer required. Moved plugin settings to [main] of
          yum.conf.
    - cleaned up YumPlugins.run() (return code not used anymore)
    - fixed up the levels on some plugin related log output


Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -r1.175 -r1.176
--- cli.py	27 Mar 2005 09:22:16 -0000	1.175
+++ cli.py	27 Mar 2005 11:51:37 -0000	1.176
@@ -230,7 +230,10 @@
             self.errorlog(0, _('Options Error: %s') % e)
             self.usage()
             sys.exit(1)
-            
+         
+        # Initialise plugins
+        self.doPluginSetup()
+
         # setup the progress bars/callbacks
         self.setupProgessCallbacks()
         




More information about the Yum-cvs-commits mailing list