aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-06-27 15:48:21 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-06-27 15:48:21 -0400
commitc063a4065dc17aa05ef1a97abd1aee066df977f6 (patch)
tree69e3f60454ac357df5ca66c1ce724a741b9efd50
parent87ef713af8d7266fba7efa815ef335d9bc76ea9e (diff)
downloadb4-c063a4065dc17aa05ef1a97abd1aee066df977f6.tar.gz
Move Signed-off-by below Link trailer when running with -sl
Chain-of-custody order requires that Signed-off-by closes the list of added trailers. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 1c24fe9..b03ed83 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -537,11 +537,11 @@ class LoreSeries:
if lmsg is not None:
if self.has_cover and covertrailers and self.patches[0].followup_trailers: # noqa
lmsg.followup_trailers += self.patches[0].followup_trailers # noqa
+ if addlink:
+ lmsg.followup_trailers.append(('Link', linkmask % lmsg.msgid, None, None))
if addmysob:
lmsg.followup_trailers.append(('Signed-off-by',
'%s <%s>' % (usercfg['name'], usercfg['email']), None, None))
- if addlink:
- lmsg.followup_trailers.append(('Link', linkmask % lmsg.msgid, None, None))
if attsame and not attcrit:
if attmark: