diff mbox

[PATCHv2] parsemail.py: Avoid skipping patches when parsing

Message ID 1440429270-15041-1-git-send-email-jose.a.lamego@linux.intel.com
State Superseded
Delegated to: Damien Lespiau
Headers show

Commit Message

Jose Lamego Aug. 24, 2015, 3:14 p.m. UTC
Avoids some email patch notifications to be
wrongly skipped when the commit's descriptor string
includes or is missing a character/space from the
expected format.
An example of an email patch notification that would
be skipped can be found in [1].

[1] http://patchwork.openembedded.org/patch/96385/

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
---
 patchwork/bin/parsemail.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/patchwork/bin/parsemail.py b/patchwork/bin/parsemail.py
index f2b10bd..30619f3 100755
--- a/patchwork/bin/parsemail.py
+++ b/patchwork/bin/parsemail.py
@@ -141,8 +141,8 @@  def mail_headers(mail):
 
 def find_pull_request(content):
     git_re = re.compile('^The following changes since commit.*' +
-                        '^are available in the git repository at:\n'
-                        '^\s*([\S]+://[^\n]+)$',
+                        '^are available in the git repository at.*:'
+                        '^\s*([\S]+://[^\n]+)',
                            re.DOTALL | re.MULTILINE)
     match = git_re.search(content)
     if match: