From patchwork Mon Aug 17 14:46:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Lamego X-Patchwork-Id: 507997 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C3BC51402A0 for ; Tue, 18 Aug 2015 00:46:25 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id ACDBD1A0506 for ; Tue, 18 Aug 2015 00:46:25 +1000 (AEST) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lists.ozlabs.org (Postfix) with ESMTP id EE5301A0372 for ; Tue, 18 Aug 2015 00:46:21 +1000 (AEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 17 Aug 2015 07:46:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,695,1432623600"; d="scan'208";a="785679576" Received: from jalamego-mobl2.zpn.intel.com ([10.219.5.39]) by orsmga002.jf.intel.com with ESMTP; 17 Aug 2015 07:46:19 -0700 From: Jose Lamego To: patchwork@lists.ozlabs.org Subject: [PATCH] parsemail.py: Avoid skipping patches when parsing Date: Mon, 17 Aug 2015 09:46:06 -0500 Message-Id: <1439822766-7723-1-git-send-email-jose.a.lamego@linux.intel.com> X-Mailer: git-send-email 1.9.1 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jose Lamego MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" 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 a missed email patch notification can be found in [1]. [1] http://patchwork.openembedded.org/patch/96385/ Signed-off-by: Jose Lamego --- 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..902e554 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: