aboutsummaryrefslogtreecommitdiff
path: root/b4/__init__.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-06-08 14:03:27 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-06-08 14:04:30 -0400
commit8d14a7a089acad173917bb03d204b69c15450391 (patch)
treef11de602728687f3c78e17cc30d3a87ebdf3b952 /b4/__init__.py
parentc8c63b1a31c65cf22ac0bf969c8c66eee6151427 (diff)
downloadb4-8d14a7a089acad173917bb03d204b69c15450391.tar.gz
Output less confusing trailer mismatch messages
Show the actual trailer name we're complaining about. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/__init__.py')
-rw-r--r--b4/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 79a0c2e..7edc799 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -284,7 +284,7 @@ class LoreMailbox:
trailers, mismatches = fmsg.get_trailers(sloppy=sloppytrailers)
for tname, tvalue in mismatches:
- lser.trailer_mismatches.add((tvalue, fmsg.fromname, fmsg.fromemail))
+ lser.trailer_mismatches.add((tname, tvalue, fmsg.fromname, fmsg.fromemail))
lvl = 1
while True:
logger.debug('%sParent: %s', ' ' * lvl, pmsg.full_subject)
@@ -881,7 +881,7 @@ class LoreMessage:
# Do we have something that looks like a person-trailer?
matches = re.findall(r'^\s*([\w-]+):[ \t]+(.*<\S+>)\s*$', self.body, re.MULTILINE)
# These are commonly part of patch/commit metadata
- badtrailers = ('from', 'author')
+ badtrailers = ('from', 'author', 'cc')
if matches:
for tname, tvalue in matches:
if tname.lower() not in badtrailers: