[Lsb-messages] /var/www/bzr/lsb/devel/buildbot-config r257: Tweak subject parsing for commit mails to pick up a corner case.

Jeff Licquia licquia at linuxfoundation.org
Thu May 10 15:29:19 UTC 2012


------------------------------------------------------------
revno: 257
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: buildbot-config
timestamp: Thu 2012-05-10 11:29:19 -0400
message:
  Tweak subject parsing for commit mails to pick up a corner case.
modified:
  lfbuildbot.py
-------------- next part --------------
=== modified file 'lfbuildbot.py'
--- a/lfbuildbot.py	2012-05-07 21:09:17 +0000
+++ b/lfbuildbot.py	2012-05-10 15:29:19 +0000
@@ -373,15 +373,14 @@
         # Right now, the Subject line is the only troublesome part.
 
         subject = m['subject']
-        match = re.search(r'^\[Lsb-messages\] (\S+) r(\d+): (.+)',
+        match = re.search(r'^\[Lsb-messages\] (\S+) r(\d+):',
                           subject.strip())
         if match:
             raw_branch = match.group(1)
             if raw_branch in self.branchMap:
                 del m['subject']
-                m['subject'] = "[Branch %s] Rev %s: %s" % (raw_branch,
-                                                           match.group(2),
-                                                           match.group(3))
+                m['subject'] = "[Branch %s] Rev %s:" % (raw_branch,
+                                                        match.group(2))
 
                 return BzrLaunchpadEmailMaildirSource.parse(self, m, prefix)
 



More information about the lsb-messages mailing list