diff options
author | Allan McRae <allan@archlinux.org> | 2011-04-17 14:51:23 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-04-17 22:18:56 +0200 |
commit | d187cdbc386165383bbc900a9e984c770ba2e557 (patch) | |
tree | baa39d34a1be61b88a2aa899ac86d27acf0f8164 | |
parent | fee49075f0e754e16cf759969a4b219d1f6d3414 (diff) | |
download | devtools-d187cdbc386165383bbc900a9e984c770ba2e557.tar.gz devtools-d187cdbc386165383bbc900a9e984c770ba2e557.tar.xz |
Use GPGKEY to select signing key
Use the default key from the gpg keyring to sign packages unless
GPGKEY is specified (either in makepkg.conf or as an environmental
variable).
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-x | commitpkg | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -132,7 +132,10 @@ for _arch in ${arch[@]}; do if [[ $SIGNPKG == 'y' ]]; then echo "Signing package ${pkgfile}..." - gpg --detach-sign --use-agent -u "${PACKAGER}" "${pkgfile}" || abort + if [[ -n $GPGKEY ]]; then + SIGNWITHKEY="-u ${GPGKEY}" + fi + gpg --detach-sign --use-agent ${SIGNWITHKEY} "${pkgfile}" || abort fi sigfile="${pkgfile}.sig" |