sec-keys/openpgp-keys-gentoo-release: Test with gpg-reference

Always use gpg-reference for testing, since gpg-sq doesn't support
"--trust-model direct".

Closes: https://bugs.gentoo.org/965641
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-11-04 20:16:24 +01:00
parent 0ec2463343
commit 956a977852
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E

View File

@ -20,7 +20,12 @@ IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="
test? ( app-crypt/gnupg )
test? (
|| (
app-crypt/gnupg[alternatives(-)]
>=app-crypt/freepg-2.5.12_p1-r1
)
)
"
# Keys included:
@ -36,12 +41,12 @@ src_test() {
local -x GNUPGHOME=${T}/.gnupg
mkdir "${GNUPGHOME}" || die
einfo "Importing keys ..."
gpg --import "gentoo-release.asc.${PV}" || die "Key import failed"
gpg-reference --import "gentoo-release.asc.${PV}" || die "Key import failed"
local f
for f in gentoo-release-test-sigs*/*.asc; do
einfo "Testing ${f##*/} ..."
gpg -q --trust-model always --verify "${f}" || die "Verification failed on ${f}"
gpg-reference -q --trust-model always --verify "${f}" || die "Verification failed on ${f}"
done
umask "${old_umask}"