commit:     b45431093c695d86921ef6ec60b559f0f2d15cfd
Author:     Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Tue Jul  1 19:40:06 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul  4 02:17:01 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=b4543109

emerge-webrsync: pass --batch to gpg(1) in gpg_fingerprint()

It appears sensible to specify the --batch option in all cases where
gpg(1) is being executed in a non-interactive context. As concerns the
gpg_fingerprint() function, make it so.

Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/emerge-webrsync | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/emerge-webrsync b/bin/emerge-webrsync
index e8a816efbb..ca99c92f1c 100755
--- a/bin/emerge-webrsync
+++ b/bin/emerge-webrsync
@@ -339,7 +339,7 @@ gpg_fingerprint() {
                [[ ${fields[0]} == fpr && ${fields[9]} =~ ^[[:xdigit:]]{40}$ ]] 
\
                && printf '%s\n' "${fields[9]}" \
                && return
-       done < <(gpg --with-colons --list-keys "$@")
+       done < <(gpg --batch --with-colons --list-keys "$@")
 }
 
 gpg_verify() {

Reply via email to