extras-buildsys/utils/pushscript WhatsNew.py,1.3,1.4

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Sat Mar 3 10:09:45 UTC 2007


Author: mschwendt

Update of /cvs/fedora/extras-buildsys/utils/pushscript
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24410

Modified Files:
	WhatsNew.py 
Log Message:
- empty changelog diffs should at least print an empty line for
better readability (in the summary)
- compared with a previous package release, print most recent changelog
entries in a new package release again if they are not newer, but have
changed (example between smolt-0.9.1-1.fc7 and smolt-0.9.2-1.fc7)



Index: WhatsNew.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/WhatsNew.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WhatsNew.py	2 Mar 2007 16:40:05 -0000	1.3
+++ WhatsNew.py	3 Mar 2007 10:09:43 -0000	1.4
@@ -127,7 +127,7 @@
             if haveold and (clogtup == oldclog[0]):
                 break
             (clogname, clogtime, clogtext) = clogtup
-            if datetime.date.fromtimestamp(clogtime) > reftime:
+            if datetime.date.fromtimestamp(clogtime) >= reftime:
                 tosave.append( (clogname,clogtime,clogtext) )
             else:
                 break
@@ -147,7 +147,10 @@
     pkgids = clogdiffs[dist].keys()
     pkgids.sort()
     for pkgid in pkgids:
-        rv += '%s\n' % pkgid +'-'*len(pkgid)+'\n%s' % clogdiffs[dist][pkgid]
+        clog = clogdiffs[dist][pkgid]
+        if not len(clog):
+            clog = '\n'
+        rv += '%s\n' % pkgid +'-'*len(pkgid)+'\n'+clog
     return rv
 
 




More information about the scm-commits mailing list