build/packages: if ports clears the packages flag we can now test and skip

This commit is contained in:
Franco Fichtner 2024-02-14 08:58:16 +01:00
parent 0dd6820d8b
commit 70495e7e75
2 changed files with 7 additions and 2 deletions

View File

@ -31,6 +31,11 @@ SELF=packages
. ./common.sh
if check_packages ${SELF} ${@}; then
echo ">>> Step ${SELF} is up to date"
exit 0
fi
AUXLIST=$(list_packages "${AUXLIST}" ${CONFIGDIR}/aux.conf)
setup_stage ${STAGEDIR}

View File

@ -34,7 +34,7 @@ SELF=ports
eval ${PORTSENV}
ARGS=${*}
DEPS=
DEPS=packages
for OPT in BATCH DEPEND PRUNE; do
VAL=$(eval echo \$${OPT});
@ -77,7 +77,7 @@ if extract_packages ${STAGEDIR}; then
if [ ${DEPEND} = "yes" ]; then
ARGS="${ARGS} ${PRODUCT_CORES} ${PRODUCT_PLUGINS}"
DEPS="plugins core"
DEPS="${DEPS} plugins core"
fi
remove_packages ${STAGEDIR} ${ARGS}
if [ ${PRUNE} = "yes" ]; then