[Collab-qa-commits] r1560 - udd/udd
Andreas Tille
tille at alioth.debian.org
Sun Aug 16 12:46:52 UTC 2009
Author: tille
Date: 2009-08-16 12:46:51 +0000 (Sun, 16 Aug 2009)
New Revision: 1560
Modified:
udd/udd/ftpnew_gatherer.py
Log:
More robust in case of missing information in new queue
Modified: udd/udd/ftpnew_gatherer.py
===================================================================
--- udd/udd/ftpnew_gatherer.py 2009-08-14 13:26:41 UTC (rev 1559)
+++ udd/udd/ftpnew_gatherer.py 2009-08-16 12:46:51 UTC (rev 1560)
@@ -192,7 +192,11 @@
has_warned_about_missing_section_key = 0
for stanza in deb822.Sources.iter_paragraphs(ftpnew_data, shared_storage=False):
- if stanza['queue'] == 'accepted' or stanza['queue'] == 'proposedupdates' :
+ try:
+ if stanza['queue'] == 'accepted' or stanza['queue'] == 'proposedupdates' :
+ continue
+ except KeyError, err:
+ print >>stderr, "No key queue found (%s), %s" % (err, str(stanza))
continue
srcpkg = src_pkg(stanza['source'])
versions = stanza['version'].split(' ') # the page lists more than one version
@@ -443,6 +447,9 @@
cur.execute(query, srcpkg.s)
for binpkg in binpkgs:
# print binpkg
+ if not binpkg:
+ print >>stderr, "Undefined binpkg. This is the info from changes:", str(binpkg_changes)
+ continue
binpkg.check_dict()
query = """EXECUTE ftpnew_insert_package (%(Package)s, %(Version)s,
%(Architecture)s, %(Maintainer)s, %(Description)s, %(Source)s,
More information about the Collab-qa-commits
mailing list