[Collab-qa-commits] r1952 - udd/udd
Lucas Nussbaum
lucas at alioth.debian.org
Tue May 31 08:18:25 UTC 2011
Author: lucas
Date: 2011-05-31 08:18:25 +0000 (Tue, 31 May 2011)
New Revision: 1952
Modified:
udd/udd/lintian_gatherer.py
Log:
ignore some extra info with broken utf8
Modified: udd/udd/lintian_gatherer.py
===================================================================
--- udd/udd/lintian_gatherer.py 2011-05-31 08:17:59 UTC (rev 1951)
+++ udd/udd/lintian_gatherer.py 2011-05-31 08:18:25 UTC (rev 1952)
@@ -65,10 +65,17 @@
else:
pkg_type = 'NULL'
+ if (pkg == 'manpages-ja' and tag == 'manpage-has-errors-from-man') or \
+ (pkg == 'manpages-zh' and tag == 'manpage-has-errors-from-man') or \
+ (pkg == 'mplayer' and tag == 'manpage-has-errors-from-man'):
+ extra = '' # HACK psycopg2.DataError: invalid byte sequence for encoding "UTF8": 0xbb
entries.append((pkg, pkg_type, tag, lintian_gatherer.code_to_tag_type_map[code], extra))
- elif not lintian_gatherer.ignore_re.match(line):
- print "Can't parse line %d: %s" % (line_number, line.rstrip())
+# elif not lintian_gatherer.ignore_re.match(line):
+# print "Can't parse line %d: %s" % (line_number, line.rstrip())
+ # for e in entries:
+ # print e
+ # cur.executemany("EXECUTE lintian_insert (%s, %s, %s, %s, %s)", [e])
cur.executemany("EXECUTE lintian_insert (%s, %s, %s, %s, %s)", entries)
cur.execute("DEALLOCATE lintian_insert")
cur.execute("ANALYZE %s" % my_config["table"])
More information about the Collab-qa-commits
mailing list