diff options
author | Sam James <sam@gentoo.org> | 2023-08-13 05:40:11 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-08-17 07:52:55 +0100 |
commit | 1055d09fa6111106bb169159e051e3f82809e52a (patch) | |
tree | a162a9bcf3e14f78997d85c99f8df149b076d0b4 | |
parent | sync: rsync, git: respect --debug for gemato (diff) | |
download | portage-1055d09f.tar.gz portage-1055d09f.tar.bz2 portage-1055d09f.zip |
sync: git: dump gpg output if verification fails with --debug
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | lib/portage/sync/modules/git/git.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/portage/sync/modules/git/git.py b/lib/portage/sync/modules/git/git.py index 0b46bd923..478e81637 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: |