Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-10-31 13:14:16 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-10-31 13:14:16 +0100
commit0e58198f3654e1a788322c1bbd68a78f5ba12208 (patch)
tree5dc5484870e9522c1f17f68a625e7a0f5d86320d
parente07d318c54e9d708d9e9b5c795392e6afae07fcd (diff)
commitpkg: Check signature if available
-rw-r--r--commitpkg.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/commitpkg.in b/commitpkg.in
index 2216b54..662cb09 100644
--- a/commitpkg.in
+++ b/commitpkg.in
@@ -165,6 +165,9 @@ for _arch in ${arch[@]}; do
gpg --detach-sign --use-agent ${SIGNWITHKEY} "${pkgfile}" || abort
fi
if [ -f "${sigfile}" ]; then
+ if ! gpg --verify "$sigfile" >/dev/null 2>&1; then
+ abort "Signature ${pkgfile}.sig is incorrect!"
+ fi
uploads+=("$sigfile")
elif [[ $SIGNPKG == 'y' ]]; then
abort "Signature ${pkgfile}.sig was not found"