build: clear markers that need redo after run

This commit is contained in:
Franco Fichtner 2016-06-28 20:34:11 +02:00
parent e83eb773f5
commit 81213cc8be
2 changed files with 11 additions and 1 deletions

View File

@ -541,6 +541,11 @@ bundle_packages()
BASEDIR=${1}
SELF=${2}
shift
shift
REDOS=${@}
sh ./clean.sh packages
git_describe ${PORTSDIR}
@ -559,6 +564,11 @@ bundle_packages()
cp ${PROGRESS} ${BASEDIR}${PACKAGESDIR}-new
done
for REDO in ${REDOS}; do
# remove markers we need to rerun
rm -f ${BASEDIR}${PACKAGESDIR}-new/.${REDO}_done
done
if [ -n "${SELF}" ]; then
# add build marker to set
touch ${BASEDIR}${PACKAGESDIR}-new/.${SELF}_done

View File

@ -101,7 +101,7 @@ trap - 2
echo ">>> Creating binary packages..."
chroot ${STAGEDIR} /bin/sh -es << EOF && bundle_packages ${STAGEDIR} ${SELF}
chroot ${STAGEDIR} /bin/sh -es << EOF && bundle_packages ${STAGEDIR} ${SELF} plugins core
pkg autoremove -y
pkg create -nao ${PACKAGESDIR}/All -f txz
EOF