[yum-cvs] yum-utils/plugins/changelog changelog.py,1.12,1.13
Panu Matilainen
pmatilai at linux.duke.edu
Mon May 28 12:38:03 UTC 2007
Update of /home/groups/yum/cvs/yum-utils/plugins/changelog
In directory login1.linux.duke.edu:/tmp/cvs-serv19989
Modified Files:
changelog.py
Log Message:
- filter out packages not updating anything to fix rhbz#238876
- drop extra newline after each changelog entry to make formatting nicer
Index: changelog.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/changelog/changelog.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- changelog.py 19 Feb 2007 12:32:18 -0000 1.12
+++ changelog.py 28 May 2007 12:38:01 -0000 1.13
@@ -32,7 +32,7 @@
out = []
for date, author, message in pkg.returnChangelog():
if int(date) > olddate:
- out.append("* %s %s\n%s\n" % (time.ctime(int(date)), author, message))
+ out.append("* %s %s\n%s" % (time.ctime(int(date)), author, message))
return out
def srpmname(pkg):
@@ -45,6 +45,8 @@
srpms = {}
ts = conduit.getTsInfo()
for tsmem in ts.getMembers():
+ if not tsmem.updates:
+ continue
name = srpmname(tsmem.po)
if srpms.has_key(name):
srpms[name].append(tsmem.po)
More information about the Yum-cvs-commits
mailing list