verify-sig.eclass: Respect GNUPG envvar

Respect GNUPG envvar for direct "gpg" invocations, to match the gemato
behavior.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/44387
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-10-30 16:22:59 +01:00
parent 292bf158aa
commit b36318ddfa
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E

View File

@ -279,7 +279,7 @@ verify-sig_verify_message() {
# https://bugs.gentoo.org/854492
local -x TMPDIR=/tmp
gemato gpg-wrap -K "${key}" "${extra_args[@]}" -- \
gpg --verify --output="${output_file}" "${file}" ||
"${GNUPG:-gpg}" --verify --output="${output_file}" "${file}" ||
die "PGP signature verification failed"
;;
signify)