summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-11-03 20:19:21 +0100
committerMichał Górny <mgorny@gentoo.org>2020-11-03 20:37:10 +0100
commit2ac64d32463a465de0f0cbb10ae18b200268de45 (patch)
treec478d14ef1a7b7da2393aa57e4da8873a1dc8d50 /eclass
parentapp-i18n/sunpinyin: Remove old (diff)
downloadgentoo-2ac64d32463a465de0f0cbb10ae18b200268de45.tar.gz
gentoo-2ac64d32463a465de0f0cbb10ae18b200268de45.tar.bz2
gentoo-2ac64d32463a465de0f0cbb10ae18b200268de45.zip
verify-sig.eclass: Account for verifying stdin
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/verify-sig.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass
index 83929098e6d8..d16181f3bf0a 100644
--- a/eclass/verify-sig.eclass
+++ b/eclass/verify-sig.eclass
@@ -103,7 +103,9 @@ verify-sig_verify_detached() {
# to GNUPGHOME.
addpredict /run/user
- einfo "Verifying ${file##*/} ..."
+ local filename=${file##*/}
+ [[ ${file} == - ]] && filename='(stdin)'
+ einfo "Verifying ${filename} ..."
gemato gpg-wrap -K "${key}" "${extra_args[@]}" -- \
gpg --verify "${sig}" "${file}" ||
die "PGP signature verification failed"