extras-buildsys/utils/pushscript WhatsNew.py,1.8,1.9

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Mon Sep 10 23:01:03 UTC 2007


Author: mschwendt

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

Modified Files:
	WhatsNew.py 
Log Message:
inherit from stable dist when doing WhatsNew changelog queries


Index: WhatsNew.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/WhatsNew.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- WhatsNew.py	10 Sep 2007 22:26:59 -0000	1.8
+++ WhatsNew.py	10 Sep 2007 23:01:01 -0000	1.9
@@ -135,9 +135,18 @@
 
 def getclog(dist,name):
     """get the list of most recent changelog 3-tuples for this package, if any have been stored in the WhatsNew db before"""
-    if not names.has_key(dist):
-        return []
-    return names[dist].get(name,[])
+    def _getclog(dist,name):
+        if not names.has_key(dist):
+            return []
+        return names[dist].get(name,[])
+
+    if dist.startswith('testing/'):
+        testingclog = _getclog(dist,name)
+        if len(testingclog):
+            return testingclog
+        # inherit changelogs from stable repo
+        dist = dist.replace('testing/', '')
+    return _getclog(dist,name)
 
 
 def formatclog(clogtuples):




More information about the fedora-extras-commits mailing list