From 7100f95150b58eecb74ec397401dc3628e1e7822 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 14 Oct 2019 08:17:51 +0200 Subject: bin/nit-picker: try to verify signature twice --- bin/nit-picker | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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=$( -- cgit v1.2.3-70-g09d2