[pacman-dev] [PATCH 1/3] makepkg: abort if signature verification fails due to a missing public key

Thomas Bächler thomas at archlinux.org
Sat Mar 8 11:40:15 EST 2014


---
 scripts/makepkg.sh.in | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index e230c15..4c235cf 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1296,10 +1296,8 @@ check_pgpsigs() {
 			printf '%s' "$(gettext "FAILED")" >&2
 			if ! pubkey=$(awk '/NO_PUBKEY/ { print $3; exit 1; }' "$statusfile"); then
 				printf ' (%s)' "$(gettext "unknown public key") $pubkey" >&2
-				warnings=1
-			else
-				errors=1
 			fi
+			errors=1
 			printf '\n' >&2
 		else
 			if grep -q "REVKEYSIG" "$statusfile"; then
-- 
1.9.0



More information about the pacman-dev mailing list