[Collab-qa-commits] r1492 - udd/udd
Lucas Nussbaum
lucas at alioth.debian.org
Fri Jun 19 11:24:49 UTC 2009
Author: lucas
Date: 2009-06-19 11:24:48 +0000 (Fri, 19 Jun 2009)
New Revision: 1492
Modified:
udd/udd/orphaned_packages_gatherer.py
Log:
improve RE to deal correctly with orphanage bugs without description
Modified: udd/udd/orphaned_packages_gatherer.py
===================================================================
--- udd/udd/orphaned_packages_gatherer.py 2009-06-19 11:24:13 UTC (rev 1491)
+++ udd/udd/orphaned_packages_gatherer.py 2009-06-19 11:24:48 UTC (rev 1492)
@@ -16,7 +16,7 @@
gatherer.__init__(self, connection, config, source)
self.assert_my_config('bugs-path', 'table', 'unarchived-table')
- title_re = re.compile('^(ITA|RFA|O): ([^\s]*) [-]+ (.*)$')
+ title_re = re.compile('^(ITA|RFA|O): ([^\s]*)( [-]+ (.*))?$')
otime_re = re.compile('^<!-- time:([0-9]+) ')
chtitle_re = re.compile('^<strong>Changed Bug title to `O:.*$')
@@ -59,10 +59,10 @@
if time_orphaned == None:
cur2.execute("EXECUTE opkgs_insert(%s,%s,%s,%s,%s)", (
m.group(2), m.group(1), row[0],
- m.group(3), row[2]))
+ m.group(4), row[2]))
else:
cur2.execute("EXECUTE opkgs_insert(%s,%s,%s,%s,%s::abstime)", (
m.group(2), m.group(1), row[0],
- m.group(3), time_orphaned))
+ m.group(4), time_orphaned))
# vim:set et tabstop=2:
More information about the Collab-qa-commits
mailing list