Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-14 08:17:51 +0200
committerErich Eckner <git@eckner.net>2019-10-14 08:17:51 +0200
commit7100f95150b58eecb74ec397401dc3628e1e7822 (patch)
tree165d12dee9a43027949556aa7fca673a1df93b1f /bin
parent0500289b9238737c6b647eb5b22800816cd60e0a (diff)
bin/nit-picker: try to verify signature twice
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nit-picker9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/nit-picker b/bin/nit-picker
index 2332d1c..48e7e38 100755
--- a/bin/nit-picker
+++ b/bin/nit-picker
@@ -295,7 +295,14 @@ while pgrep -x ii >/dev/null \
--verify "${tmp_dir}/${parameters}.sig" "${tmp_dir}/${parameters}" \
2>/dev/null
); then
- error_message="package ${parameters} has an invalid signature."
+ sleep 1
+ if ! gpg_output=$(
+ gpg --batch --status-fd 1 -q --homedir /etc/pacman.d/gnupg \
+ --verify "${tmp_dir}/${parameters}.sig" "${tmp_dir}/${parameters}" \
+ 2>/dev/null
+ ); then
+ error_message="package ${parameters} has an invalid signature."
+ fi
fi
if [ -z "${error_message}" ]; then
gpg_key=$(