Mercurial > treepkg
changeset 455:6d65aa725f99
Ignore builds without status information
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 23 Aug 2010 12:53:49 +0000 |
parents | 18c175c28077 |
children | e7e0ace683c6 |
files | treepkg/info/status.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/treepkg/info/status.py Mon Aug 23 08:23:21 2010 +0000 +++ b/treepkg/info/status.py Mon Aug 23 12:53:49 2010 +0000 @@ -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