gnupg: Add gpg status output to debug logging
PATCH 1/1 gnupg: Add gpg status output to debug logging
There wasn't an easy way to see how a failure was being determined by GPG, so add the entire GPG status output to the debug log.
Signed-off-by Kees Cook <[email protected]>
--- patatt/__init__.py | 1 + 1 file changed, 1 insertion(+)
patatt/__init__.py +1 -0
@@ -371,6 +371,7 @@ class DevsigHeader: signtime = '' signkey = '' + logger.debug('GNUPG status:\n\t%s' % ("\n\t".join(status.decode().strip().split('\n')))) gs_matches = re.search(rb'^\[GNUPG:] GOODSIG ([0-9A-F]+)\s+(.*)$', status, flags=re.M) if gs_matches: good = True
Signature · 1 line
2.30.2
Quoted 4 lines · Kees Cook
There wasn't an easy way to see how a failure was being determined by GPG, so add the entire GPG status output to the debug log.
Applied with minor stylistic changes to both main and stable-0.4.y, thanks!
[1/1] gnupg: Add gpg status output to debug logging
commit: a7ec0c10429bb1e14591e33c08baf3aee28c26dd
Best regards,
Signature · 1 line
Konstantin Ryabitsev <[email protected]>