Merge lp:~broder/ubuntu-archive-tools/fix-backport-helper-regexp into lp:ubuntu-archive-tools

Proposed by Evan Broder
Status: Merged
Merged at revision: 307
Proposed branch: lp:~broder/ubuntu-archive-tools/fix-backport-helper-regexp
Merge into: lp:ubuntu-archive-tools
Diff against target: 14 lines (+2/-2)
1 file modified
backport-helper.py (+2/-2)
To merge this branch: bzr merge lp:~broder/ubuntu-archive-tools/fix-backport-helper-regexp
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+81813@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'backport-helper.py'
2--- backport-helper.py 2011-02-12 16:58:38 +0000
3+++ backport-helper.py 2011-11-10 06:28:27 +0000
4@@ -26,8 +26,8 @@
5
6
7 class BPBug(object):
8- PACKAGE_RE = re.compile(r'Please backport (\w+)\b', re.I)
9- SOURCE_RE = re.compile(r'\bfrom (\w+)\b', re.I)
10+ PACKAGE_RE = re.compile(r'Please backport ([a-z0-9][-a-z0-9+.]+)', re.I)
11+ SOURCE_RE = re.compile(r'\bfrom (\w+)', re.I)
12
13 def __init__(self, bugtask):
14 self.number = bugtask.bug.id

Subscribers

People subscribed via source and target branches