[yum-cvs] yum-utils/plugins/changelog changelog.py,1.2,1.3

Panu Matilainen pmatilai at login.linux.duke.edu
Mon Jun 27 13:34:02 UTC 2005


Update of /home/groups/yum/cvs/yum-utils/plugins/changelog
In directory login:/tmp/cvs-serv18328/plugins/changelog

Modified Files:
	changelog.py 
Log Message:
Doh, changelog dates were being compared as a string values, not ints so
it wasn't working at all, except that there was a hardcoded limit of five
latest entries so it *appeared* to work. Talk about embarrassing... :)


Index: changelog.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/changelog/changelog.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- changelog.py	21 Jun 2005 16:14:09 -0000	1.2
+++ changelog.py	27 Jun 2005 13:34:00 -0000	1.3
@@ -32,8 +32,8 @@
 
 def changelog_delta(pkg, olddate):
     out = []
-    for date, author, message in pkg.returnChangelog()[:5]:
-        if date > olddate:
+    for date, author, message in pkg.returnChangelog():
+        if int(date) > olddate:
             out.append("* %s %s\n%s\n" % (time.ctime(int(date)), author, message))
     return out
 




More information about the Yum-cvs-commits mailing list