From: Bin Meng Date: Mon, 27 Jun 2016 06:24:28 +0000 (-0700) Subject: tools: patman: Use cover_match for 'Cover-letter' X-Git-Tag: v2016.09-rc1~147 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e7df218c3b446e02c5549b79dd76b65054d6147d;p=oweals%2Fu-boot.git tools: patman: Use cover_match for 'Cover-letter' Like other patman tags, use a new variable cover_match to indicate a match for 'Cover-letter'. Signed-off-by: Bin Meng Acked-by: Simon Glass --- diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index 27d031ef59..2c4efc57f1 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -150,6 +150,7 @@ class PatchStream: # Handle state transition and skipping blank lines series_tag_match = re_series_tag.match(line) commit_tag_match = re_commit_tag.match(line) + cover_match = re_cover.match(line) cover_cc_match = re_cover_cc.match(line) signoff_match = re_signoff.match(line) tag_match = None @@ -203,7 +204,7 @@ class PatchStream: self.skip_blank = False # Detect the start of a cover letter section - elif re_cover.match(line): + elif cover_match: self.in_section = 'cover' self.skip_blank = False