sec-keys/openpgp-keys-gentoo-release: Sync with Gentoo

It's from Gentoo commit 956a9778524bf9a9892de3ed9423ade722f91503.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2025-11-17 07:12:26 +00:00 committed by Krzesimir Nowak
parent fd8f583bcf
commit 64c4661df2

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}"