diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-10-12 14:18:42 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-10-16 06:54:30 +0200 |
commit | d49e67fc4060ef6fe96ffcf5928534d00886d539 (patch) | |
tree | f3af9cd21ae668ebbe66fa0e3ad100d994705e2c /eclass/verify-sig.eclass | |
parent | verify-sig.eclass: Refactor code to use extra_args for all types (diff) | |
download | gentoo-d49e67fc4060ef6fe96ffcf5928534d00886d539.tar.gz gentoo-d49e67fc4060ef6fe96ffcf5928534d00886d539.tar.bz2 gentoo-d49e67fc4060ef6fe96ffcf5928534d00886d539.zip |
verify-sig.eclass: Error out on invalid method+function combos
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/verify-sig.eclass')
-rw-r--r-- | eclass/verify-sig.eclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass index d601c7838a00..9886e3352db7 100644 --- a/eclass/verify-sig.eclass +++ b/eclass/verify-sig.eclass @@ -173,6 +173,9 @@ verify-sig_verify_detached() { -V -p "${key}" -m "${file}" -x "${sig}" || die "Signify signature verification failed" ;; + *) + die "${FUNCNAME} not supported with ${VERIFY_SIG_METHOD}" + ;; esac } @@ -234,6 +237,9 @@ verify-sig_verify_message() { signify -V -e -p "${key}" -m "${output_file}" -x "${file}" || die "Signify signature verification failed" ;; + *) + die "${FUNCNAME} not supported with ${VERIFY_SIG_METHOD}" + ;; esac } @@ -367,6 +373,9 @@ verify-sig_verify_signed_checksums() { -x "${checksum_file}" "${files[@]}" || die "Signify signature verification failed" ;; + *) + die "${FUNCNAME} not supported with ${VERIFY_SIG_METHOD}" + ;; esac } |