commitpkg: Skip signing if signature already exists
This commit is contained in:
parent
a06ac2451a
commit
e07d318c54
|
@ -156,15 +156,14 @@ for _arch in ${arch[@]}; do
|
||||||
fi
|
fi
|
||||||
uploads+=("$pkgfile")
|
uploads+=("$pkgfile")
|
||||||
|
|
||||||
if [[ $SIGNPKG == 'y' ]]; then
|
sigfile="${pkgfile}.sig"
|
||||||
|
if [[ $SIGNPKG == 'y' ]] && [ ! -f "${sigfile}" ]; then
|
||||||
echo "Signing package ${pkgfile}..."
|
echo "Signing package ${pkgfile}..."
|
||||||
if [[ -n $GPGKEY ]]; then
|
if [[ -n $GPGKEY ]]; then
|
||||||
SIGNWITHKEY="-u ${GPGKEY}"
|
SIGNWITHKEY="-u ${GPGKEY}"
|
||||||
fi
|
fi
|
||||||
gpg --detach-sign --use-agent ${SIGNWITHKEY} "${pkgfile}" || abort
|
gpg --detach-sign --use-agent ${SIGNWITHKEY} "${pkgfile}" || abort
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sigfile="${pkgfile}.sig"
|
|
||||||
if [ -f "${sigfile}" ]; then
|
if [ -f "${sigfile}" ]; then
|
||||||
uploads+=("$sigfile")
|
uploads+=("$sigfile")
|
||||||
elif [[ $SIGNPKG == 'y' ]]; then
|
elif [[ $SIGNPKG == 'y' ]]; then
|
||||||
|
|
Loading…
Reference in New Issue