[yum-cvs] yum-utils/plugins/changelog changelog.py,1.7,1.8

Menno Smits mjs at linux.duke.edu
Fri Jun 16 14:45:53 UTC 2006


Update of /home/groups/yum/cvs/yum-utils/plugins/changelog
In directory login1.linux.duke.edu:/tmp/cvs-serv2821

Modified Files:
	changelog.py 
Log Message:
- removed registerOpt() usage. This is only required when adding options to
  Yum's own configuration files. It is not required for the plugin's own
  configuration files.
- removed unused imports


Index: changelog.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/changelog/changelog.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- changelog.py	6 Sep 2005 19:19:35 -0000	1.7
+++ changelog.py	16 Jun 2006 14:45:51 -0000	1.8
@@ -19,9 +19,7 @@
 #   the costly 'otherdata' import.
 
 import time
-from yum.packages import YumInstalledPackage
 from rpmUtils.miscutils import splitFilename
-from yum.constants import *
 from yum.plugins import TYPE_INTERFACE
 
 requires_api_version = '2.1'
@@ -69,8 +67,6 @@
         parser.add_option('--changelog', action='store_true', 
                       help='Show changelog delta of updated packages')
 
-    conduit.registerOpt('when', PLUG_OPT_STRING, PLUG_OPT_WHERE_MAIN, 'post')
-
 def postreposetup_hook(conduit):
     global changelog
     opts, args = conduit.getCmdLine()




More information about the Yum-cvs-commits mailing list