diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-10-31 13:14:16 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-10-31 13:14:16 +0100 |
commit | 0e58198f3654e1a788322c1bbd68a78f5ba12208 (patch) | |
tree | 5dc5484870e9522c1f17f68a625e7a0f5d86320d /commitpkg.in | |
parent | e07d318c54e9d708d9e9b5c795392e6afae07fcd (diff) | |
download | devtools32-0e58198f3654e1a788322c1bbd68a78f5ba12208.tar.xz |
commitpkg: Check signature if available
Diffstat (limited to 'commitpkg.in')
-rw-r--r-- | commitpkg.in | 3 |
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" |