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>
This commit is contained in:
parent
fee49075f0
commit
d187cdbc38
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue