bodhi/metadata.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 0a78f7b127cb4ffc2af7db43ad4549b507a7b2f5
Author: Luke Macken <lmacken(a)redhat.com>
Date: Fri Jun 5 21:08:54 2009 -0400
Ensure we only add updates that have an updateid to the metadata
diff --git a/bodhi/metadata.py b/bodhi/metadata.py
index d130ae6..bb487e2 100644
--- a/bodhi/metadata.py
+++ b/bodhi/metadata.py
@@ -59,7 +59,7 @@ class ExtendedMetadata:
break
# Add all relevant notices from the metadata to this document
- ids = [update.updateid for update in self.updates]
+ ids = [update.updateid for update in self.updates if update.updateid]
for notice in umd.get_notices():
if notice['update_id'] in ids:
self._add_notice(notice)
@@ -216,7 +216,6 @@ class ExtendedMetadata:
try:
kojiBuild = self.builds[build.nvr]
except:
- log.error("Can't find cached kojiBuild for %s" %
build.nvr)
kojiBuild = self.koji.getBuild(build.nvr)
rpms = self.koji.listBuildRPMs(kojiBuild['id'])
for rpm in rpms:
Show replies by date