Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-04-17 22:51:23 +1000
committerPierre Schmitz <pierre@archlinux.de>2011-04-17 22:18:56 +0200
commitd187cdbc386165383bbc900a9e984c770ba2e557 (patch)
treebaa39d34a1be61b88a2aa899ac86d27acf0f8164
parentfee49075f0e754e16cf759969a4b219d1f6d3414 (diff)
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-xcommitpkg5
1 files changed, 4 insertions, 1 deletions
diff --git a/commitpkg b/commitpkg
index 7d533a0..916bdfc 100755
--- a/commitpkg
+++ b/commitpkg
@@ -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"