fix de-p1st-gnupg

This commit is contained in:
Daniel Langbein 2022-11-06 11:19:13 +01:00
parent 3c2532f382
commit e7759f7303
2 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,7 @@
function import-pubkey() {
# echo to stderr
if ! gpg --export-ownertrust | grep --quiet '^94F3D3DDAC22802258FC044B6C47C753F0823002:6:$'; then
# Import public key.
# Write to stderr.
echo "Importing public key ..." >&2
gpg --import /usr/share/gnupg/94F3D3DDAC22802258FC044B6C47C753F0823002.pub || {
@ -10,8 +12,4 @@ function import-pubkey() {
echo "p1st: Error changing trust!"
return 1;
}
}
if ! gpg --export-ownertrust | grep --quiet '^94F3D3DDAC22802258FC044B6C47C753F0823002:6:$'; then
import-pubkey
fi

View File

@ -2,7 +2,7 @@
_pkgname=gnupg
_reponame=arch
pkgname="de-p1st-$_pkgname"
pkgver=0.0.10
pkgver=0.0.11
pkgrel=1
pkgdesc="gnupg with configuration"
arch=('any')