comparison treepkg/info/status.py @ 455:6d65aa725f99

Ignore builds without status information
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 23 Aug 2010 12:53:49 +0000
parents 3a3cad8f6f60
children
comparison
equal deleted inserted replaced
454:18c175c28077 455:6d65aa725f99
88 raise TreepkgInfoException("XML is not valid for treepkginfo") 88 raise TreepkgInfoException("XML is not valid for treepkginfo")
89 return TreepkgRoot.fromxml(root) 89 return TreepkgRoot.fromxml(root)
90 90
91 def add_revisions(self, track, trackinfo): 91 def add_revisions(self, track, trackinfo):
92 revisions = track.get_revisions() 92 revisions = track.get_revisions()
93
94 for r in revisions: # Builds without status are no candidates
95 if not r.status.start:
96 revisions.remove(r)
97
93 revisions = sorted(revisions, key=lambda r: r.status.start, 98 revisions = sorted(revisions, key=lambda r: r.status.start,
94 reverse=True) 99 reverse=True)
95 candidates = revisions 100 candidates = revisions
96 101
97 if self.success: # skip not successful builds 102 if self.success: # skip not successful builds
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)