aboutsummaryrefslogtreecommitdiff
path: root/b4/__init__.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-02 12:23:26 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-12-02 12:23:26 -0500
commit626959e89b38fc95c54fad58baac131755cce04f (patch)
tree7844762492ea7c7b453a65d92b051b3d253e4695 /b4/__init__.py
parent1c4a327d1d9e5de475073f76a53e5257d534e8fe (diff)
downloadb4-626959e89b38fc95c54fad58baac131755cce04f.tar.gz
Don't give up on attestation if there's no index
Patches created with quilt will have no indexes, so git patch-id is refusing to generate a hash for them (somehow, though why?). At any rate, don't give up on attesting these patches even without the git's patch-id. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/__init__.py')
-rw-r--r--b4/__init__.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 624e262..ae01555 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -519,8 +519,8 @@ class LoreSeries:
raise KeyError('Cherrypick not in series')
if lmsg is not None:
- if self.has_cover and covertrailers and self.patches[0].followup_trailers:
- lmsg.followup_trailers += self.patches[0].followup_trailers
+ if self.has_cover and covertrailers and self.patches[0].followup_trailers: # noqa
+ lmsg.followup_trailers += self.patches[0].followup_trailers # noqa
if addmysob:
lmsg.followup_trailers.append(('Signed-off-by',
'%s <%s>' % (usercfg['name'], usercfg['email']), None, None))
@@ -1149,9 +1149,7 @@ class LoreMessage:
return
fline = out.split('\n')[0]
if len(fline) < 40:
- # Not sure what that is
- return
- self.git_patch_id = fline[:40]
+ self.git_patch_id = fline[:40]
msg_out = mkstemp()
patch_out = mkstemp()