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.lam...@linux.intel.com> --- patchwork/bin/parsemail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 1.9.1 _______________________________________________ Patchwork mailing list Patchwork@lists.ozlabs.org https://lists.ozlabs.org/listinfo/patchwork