summaryrefslogtreecommitdiffstats
path: root/tools/patman/patchstream.py
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-06-26 23:24:28 -0700
committerSimon Glass <sjg@chromium.org>2016-07-11 14:06:44 -0600
commite7df218c3b446e02c5549b79dd76b65054d6147d (patch)
treee63c92b79cb31627205626873d46fc95083012ab /tools/patman/patchstream.py
parent6f0e7a36efbb30fb7a100f5a6f421b0310815815 (diff)
downloadu-boot-e7df218c3b446e02c5549b79dd76b65054d6147d.tar.gz
u-boot-e7df218c3b446e02c5549b79dd76b65054d6147d.tar.xz
u-boot-e7df218c3b446e02c5549b79dd76b65054d6147d.zip
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 <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/patchstream.py')
-rw-r--r--tools/patman/patchstream.py3
1 files changed, 2 insertions, 1 deletions
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