build: two small changes

* Always purge signatures when we can't generate new ones.
* Instead of testing who called us see if config files are there.
This commit is contained in:
Franco Fichtner 2018-10-14 12:53:28 +02:00
parent ce680c9a39
commit da742c492e
1 changed files with 5 additions and 2 deletions

View File

@ -485,8 +485,8 @@ setup_version()
rm -rf ${VERSIONDIR}
mkdir -p ${VERSIONDIR}
if [ ${2} = "base" ]; then
# XXX obsolete file handling
if [ -f ${CONFIGDIR}/plist.${2}.${PRODUCT_ARCH} ]; then
: # XXX obsolete file handling
fi
# embed version info into target file
@ -556,6 +556,9 @@ generate_signature()
echo -n ">>> Creating ${PRODUCT_SETTINGS} signature for $(basename ${1})... "
sha256 -q ${1} | ${PRODUCT_SIGNCMD} > ${1}.sig
echo "done"
else
# do not keep a stale signature
rm ${1}.sig
fi
}