From 8edd289273b33d353b7e858df1461d4cc2947232 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Tue, 18 Aug 2020 11:41:01 -0400 Subject: Cover letters may not have a diffstat Don't check if a potential cover letter has a diffstat when processing follow-up trailers. Reported-by: Greg Kroah-Hartman Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b4/__init__.py b/b4/__init__.py index 245a0db..cd07be0 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -304,7 +304,7 @@ class LoreMailbox: self.trailer_map[attid].update(trailers) pmsg.followup_trailers.update(trailers) break - if pmsg.has_diffstat and not pmsg.reply: + if not pmsg.reply: # Could be a cover letter pmsg.followup_trailers.update(trailers) break -- cgit v1.2.3