Skip to content

Commit

Permalink
verify-sig.eclass: Revert "Use gemato openpgp-verify-detached"
Browse files Browse the repository at this point in the history
This is causing verification failures when verifying old signatures
made with now-expired keys.

Reverts: 75ea89a
Bug: https://bugs.gentoo.org/894164
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Feb 13, 2023
1 parent e046fb0 commit 014a26b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions eclass/verify-sig.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ case ${VERIFY_SIG_METHOD} in
BDEPEND="
verify-sig? (
app-crypt/gnupg
>=app-portage/gemato-18.0
)
"
>=app-portage/gemato-16
)"
;;
signify)
BDEPEND="verify-sig? ( app-crypt/signify )"
Expand Down Expand Up @@ -145,9 +144,8 @@ verify-sig_verify_detached() {
# gpg can't handle very long TMPDIR
# https://bugs.gentoo.org/854492
local -x TMPDIR=/tmp
gemato openpgp-verify-detached -K "${key}" \
"${extra_args[@]}" \
"${sig}" "${file}" ||
gemato gpg-wrap -K "${key}" "${extra_args[@]}" -- \
gpg --verify "${sig}" "${file}" ||
die "PGP signature verification failed"
;;
signify)
Expand Down

0 comments on commit 014a26b

Please sign in to comment.