Compare commits

...

2 Commits

Author SHA1 Message Date
Pierre Schmitz
61cc1f3504 prepare release 2011-04-11 18:27:44 +02:00
Pierre Schmitz
7037948b65 Add simple function to sign packages
Set SIGNPKG to y in makepkg.conf to enable signing.
2011-04-11 18:26:11 +02:00
2 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
V=0.9.20
V=0.9.21
BINPROGS = \
checkpkg \

View File

@@ -130,9 +130,16 @@ for _arch in ${arch[@]}; do
fi
uploads+=("$pkgfile")
if [[ $SIGNPKG == 'y' ]]; then
echo "Signing package ${pkgfile}..."
gpg --detach-sign --use-agent -u "${PACKAGER}" "${pkgfile}" || abort
fi
sigfile="${pkgfile}.sig"
if [ -f "${sigfile}" ]; then
uploads+=("$sigfile")
elif [[ $SIGNPKG == 'y' ]]; then
abort "Signature ${pkgfile}.sig was not found"
fi
done
archrelease $repo-${_arch} || abort