build: emit signing message only when signing

This commit is contained in:
Franco Fichtner 2015-12-26 17:37:52 +01:00
parent df0ee582fb
commit 7836972bd0
2 changed files with 4 additions and 5 deletions

View File

@ -74,9 +74,5 @@ rm -f /tmp/setdiff.*
echo "done"
echo -n "Signing sets (if applicable)... "
generate_signature ${BASESET}.txz
generate_signature ${BASESET}.obsolete
echo "done"

View File

@ -295,9 +295,12 @@ setup_distfiles()
generate_signature()
{
SIGNCMD="${TOOLSDIR}/scripts/pkg_sign.sh"
if [ -n "$(${TOOLSDIR}/scripts/pkg_fingerprint.sh)" ]; then
SIGNCMD="${TOOLSDIR}/scripts/pkg_sign.sh"
echo -n "Signing $(basename ${1})... "
sha256 -q ${1} | ${SIGNCMD} > ${1}.sig
echo "done"
fi
}