[Treepkg-commits] r415 - trunk/treepkg/info

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Aug 23 14:53:50 CEST 2010


Author: aheinecke
Date: 2010-08-23 14:53:49 +0200 (Mon, 23 Aug 2010)
New Revision: 415

Modified:
   trunk/treepkg/info/status.py
Log:
Ignore builds without status information


Modified: trunk/treepkg/info/status.py
===================================================================
--- trunk/treepkg/info/status.py	2010-08-23 08:23:21 UTC (rev 414)
+++ trunk/treepkg/info/status.py	2010-08-23 12:53:49 UTC (rev 415)
@@ -90,6 +90,11 @@
 
     def add_revisions(self, track, trackinfo):
         revisions = track.get_revisions()
+
+        for r in revisions: # Builds without status are no candidates
+            if not r.status.start:
+                revisions.remove(r)
+
         revisions = sorted(revisions, key=lambda r: r.status.start,
                            reverse=True)
         candidates = revisions



More information about the Treepkg-commits mailing list