diff options
author | 2018-07-22 21:26:25 -0700 | |
---|---|---|
committer | 2018-07-27 09:08:26 -0700 | |
commit | ef01e3d9373cb64320df290494c13e3f2cf6a0c0 (patch) | |
tree | 41db43d59490298e3179f1ed3c44b5ed36887973 | |
parent | git: add missing return statement in fix for bug 661906 (diff) | |
download | portage-ef01e3d9.tar.gz portage-ef01e3d9.tar.bz2 portage-ef01e3d9.zip |
emerge-webrsync: exit early for signature problem (bug 661838)
Exit early after signature verification failure, since it's
typically inappropriate to try other mirrors in this case
(it may indicate a keyring problem).
Bug: https://bugs.gentoo.org/661838
Reviewed-by: Brian Dolbec <dolsen@gentoo.org>
-rwxr-xr-x | bin/emerge-webrsync | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync index 560dd0236..b135567b7 100755 --- a/bin/emerge-webrsync +++ b/bin/emerge-webrsync @@ -191,6 +191,13 @@ check_file_signature() { fi done <<< "${gnupg_status}" fi + if [[ ${r} -ne 0 ]]; then + # Exit early since it's typically inappropriate to + # try other mirrors in this case (it may indicate + # a keyring problem). + eecho "signature verification failed" + exit 1 + fi else eecho "cannot check signature: gpg binary not found" exit 1 |