[yum-cvs] yum-utils/plugins/changelog changelog.py,1.6,1.6.2.1
Panu Matilainen
pmatilai at login.linux.duke.edu
Sat Sep 17 08:52:38 UTC 2005
Update of /home/groups/yum/cvs/yum-utils/plugins/changelog
In directory login:/tmp/cvs-serv1561/plugins/changelog
Modified Files:
Tag: yum-2_4_X
changelog.py
Log Message:
Apply repoquery and changelog fixes from HEAD, mark as 0.3.1.
Index: changelog.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/changelog/changelog.py,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -r1.6 -r1.6.2.1
--- changelog.py 23 Aug 2005 16:10:32 -0000 1.6
+++ changelog.py 17 Sep 2005 08:52:35 -0000 1.6.2.1
@@ -65,7 +65,8 @@
def config_hook(conduit):
parser = conduit.getOptParser()
- parser.add_option('--changelog', action='store_true',
+ if parser:
+ 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')
@@ -73,7 +74,8 @@
def postreposetup_hook(conduit):
global changelog
opts, args = conduit.getCmdLine()
- changelog = opts.changelog
+ if opts:
+ changelog = opts.changelog
if changelog:
repos = conduit.getRepos()
More information about the Yum-cvs-commits
mailing list