mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
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:
parent
0ec2463343
commit
956a977852
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user