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

Andreas Tille tille at alioth.debian.org
Tue May 8 19:36:43 UTC 2012


Author: tille
Date: 2012-05-08 19:36:43 +0000 (Tue, 08 May 2012)
New Revision: 2291

Modified:
   udd/udd/bibref_gatherer.py
Log:
There might be upper case ' AND ' strings ...


Modified: udd/udd/bibref_gatherer.py
===================================================================
--- udd/udd/bibref_gatherer.py	2012-05-08 18:09:34 UTC (rev 2290)
+++ udd/udd/bibref_gatherer.py	2012-05-08 19:36:43 UTC (rev 2291)
@@ -134,7 +134,7 @@
           if new_author != ref['value']:
             self.log.warning("Author of source package %s does contain invalid BibTeX format: %s will be turned into %s", source, ref['value'], new_author)
             ref['value'] = new_author
-          if ref['value'].count(',') > ref['value'].count(' and ') + 1:
+          if ref['value'].count(',') > ref['value'].lower().count(' and ') + 1:
             self.log.warning("Suspicious authors field in source package %s with way more ',' than ' and ' strings: %s", source, ref['value'])
       self.bibrefs.append(ref)
       if r.lower() == 'year':




More information about the Collab-qa-commits mailing list