mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-17 01:56:13 +02:00
eclass/verify-sig: Sync with Gentoo
It's from Gentoo commit 519f14fe6f74814196996da2d45c077003144db0.
This commit is contained in:
parent
dc6657859f
commit
dc1db1aed3
@ -144,9 +144,16 @@ verify-sig_verify_detached() {
|
||||
# gpg can't handle very long TMPDIR
|
||||
# https://bugs.gentoo.org/854492
|
||||
local -x TMPDIR=/tmp
|
||||
gemato gpg-wrap -K "${key}" "${extra_args[@]}" -- \
|
||||
gpg --verify "${sig}" "${file}" ||
|
||||
die "PGP signature verification failed"
|
||||
if has_version ">=app-portage/gemato-20"; then
|
||||
gemato openpgp-verify-detached -K "${key}" \
|
||||
"${extra_args[@]}" \
|
||||
"${sig}" "${file}" ||
|
||||
die "PGP signature verification failed"
|
||||
else
|
||||
gemato gpg-wrap -K "${key}" "${extra_args[@]}" -- \
|
||||
gpg --verify "${sig}" "${file}" ||
|
||||
die "PGP signature verification failed"
|
||||
fi
|
||||
;;
|
||||
signify)
|
||||
signify -V -p "${key}" -m "${file}" -x "${sig}" ||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user