[yum-cvs] yum/yum plugins.py,1.14,1.15
Menno Smits
mjs at login.linux.duke.edu
Tue Jun 7 13:47:35 UTC 2005
Update of /home/groups/yum/cvs/yum/yum
In directory login:/tmp/cvs-serv22880
Modified Files:
plugins.py
Log Message:
- base PluginYumExit on Exception instead of YumBaseError so that it can be
handled separately
- Updated TODO
Index: plugins.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/plugins.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- plugins.py 7 Jun 2005 11:34:44 -0000 1.14
+++ plugins.py 7 Jun 2005 13:47:32 -0000 1.15
@@ -24,7 +24,10 @@
# TODO: should plugin searchpath be affected by installroot option?
-# TODO: better handling of PluginYumExit
+# TODO: cleaner method to query installed packages rather than exposing RpmDB
+# (Panu?)
+
+# TODO: PLUGINS document (mainly for plugin developers)
# TODO: consistent case of YumPlugins methods
@@ -44,19 +47,14 @@
# TODO: allow plugins to extend shell commands
-# TODO: allow plugins to commands
+# TODO: allow plugins to extend commands (on the command line)
# TODO: plugins should be able to specify convertor functions for config vars
-# TODO: investigate potential issues with plugins doing user output during
-# their close handlers, esp wrt GUI apps
-
# TODO: detect conflicts between builtin yum options and registered plugin
# options (will require refactoring of config.py)
-# TODO: Developer docs:
-# - PLUGINS.(txt|html?)
-# - use epydoc as API begins to stablise
+# TODO: More developer docs: use epydoc as API begins to stablise
# TODO: test the API by implementing some crack from bugzilla
# - http://devel.linux.duke.edu/bugzilla/show_bug.cgi?id=181
@@ -98,12 +96,11 @@
'close'
)
-class PluginYumExit(Errors.YumBaseError):
+class PluginYumExit(Exception):
'''Used by plugins to signal that yum should stop
'''
class YumPlugins:
-
'''
Manager class for Yum plugins.
'''
More information about the Yum-cvs-commits
mailing list