[Collab-qa-commits] r1781 - udd/udd

Andreas Tille tille at alioth.debian.org
Mon Sep 13 07:18:08 UTC 2010


Author: tille
Date: 2010-09-13 07:18:00 +0000 (Mon, 13 Sep 2010)
New Revision: 1781

Modified:
   udd/udd/ddtp_gatherer.py
Log:
catch error in formating (Description-da: : Islamic hijri date and prayer time utilities) contains two ':' which confuses deb822 parsing routine.


Modified: udd/udd/ddtp_gatherer.py
===================================================================
--- udd/udd/ddtp_gatherer.py	2010-09-06 23:47:13 UTC (rev 1780)
+++ udd/udd/ddtp_gatherer.py	2010-09-13 07:18:00 UTC (rev 1781)
@@ -164,7 +164,12 @@
             self.pkg             = ddtp(stanza['package'], rel, lang)
             self.pkg.md5sum      = stanza['Description-md5']
             self.pkg.version     = stanza['Version']
-            desc                 = stanza[descstring]
+            try:
+              desc               = stanza[descstring]
+            except KeyError, err:
+              self.log.error("file=%s%s, pkg=%s, version=%s (%s)" % (dir, filename, self.pkg.package, self.pkg.version, err))
+              i18n_error_flag=1
+              continue
             lines                = desc.splitlines()
             try:
               self.pkg.description = lines[0]




More information about the Collab-qa-commits mailing list