From c6d850e9d72007a6530ad59beccf02ceee1954ef 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 a1479aa..a3302a1 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