commit: 1055d09fa6111106bb169159e051e3f82809e52a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Aug 13 04:40:11 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Aug 17 06:52:55 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=1055d09f
sync: git: dump gpg output if verification fails with --debug Signed-off-by: Sam James <sam <AT> gentoo.org> lib/portage/sync/modules/git/git.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/portage/sync/modules/git/git.py b/lib/portage/sync/modules/git/git.py index 0b46bd9238..478e816370 100644 --- a/lib/portage/sync/modules/git/git.py +++ b/lib/portage/sync/modules/git/git.py @@ -480,6 +480,14 @@ class GitSync(NewBase): else: expl = "unknown issue" out.eerror(f"No valid signature found: {expl}") + + if debug: + writemsg_level( + f"!!! Got following output from gpg: {status}\n", + level=logging.DEBUG, + noiselevel=-1, + ) + return False finally: if openpgp_env is not None: