build: clear markers that need redo after run
This commit is contained in:
parent
e83eb773f5
commit
81213cc8be
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue