bodhi/metadata.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 9d740deb796165a3d7c25244faef77545abf5c13 Author: Luke Macken lmacken@redhat.com Date: Fri Jun 5 21:07:00 2009 -0400
Only add testing/stable updates to the updateinfo (not obsolete ones)
diff --git a/bodhi/metadata.py b/bodhi/metadata.py index b4fb953..d130ae6 100644 --- a/bodhi/metadata.py +++ b/bodhi/metadata.py @@ -84,7 +84,9 @@ class ExtendedMetadata: self.builds[build['nvr']] = build try: b = PackageBuild.byNvr(build['nvr']) - map(self.updates.add, b.updates) + for update in b.updates: + if update.status in ('testing', 'stable'): + self.updates.add(update) except SQLObjectNotFound, e: log.warning(e)