[Collab-qa-commits] r2344 - udd/udd
Andreas Tille
tille at alioth.debian.org
Mon May 21 12:29:56 UTC 2012
Author: tille
Date: 2012-05-21 12:29:56 +0000 (Mon, 21 May 2012)
New Revision: 2344
Modified:
udd/udd/blends_prospective_gatherer.py
Log:
Handle problems finding a package section
Modified: udd/udd/blends_prospective_gatherer.py
===================================================================
--- udd/udd/blends_prospective_gatherer.py 2012-05-21 12:07:49 UTC (rev 2343)
+++ udd/udd/blends_prospective_gatherer.py 2012-05-21 12:29:56 UTC (rev 2344)
@@ -337,7 +337,10 @@
pprosp['long_description'] = ''
pprosp['description'] = pkg['description'].split("\n",1)[0].strip()
else:
- self.log.warning("Control file for source '%s' of %s has no desription for Package %s" % (source, sprosp['blend'], pprosp['package']))
+ if pprosp.has_key('package'):
+ self.log.warning("Control file for source '%s' of %s has no desription for Package %s" % (source, sprosp['blend'], pprosp['package']))
+ else:
+ self.log.error("Control file for source '%s' of %s seems to miss package information" % (source, sprosp['blend']))
# print pprosp
pkgs.append(pprosp)
try:
More information about the Collab-qa-commits
mailing list