summaryrefslogtreecommitdiffstats
path: root/commitpkg
diff options
context:
space:
mode:
Diffstat (limited to 'commitpkg')
-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"