build/ports: clear plugins and core when redoing ports

This commit is contained in:
Franco Fichtner 2016-07-10 16:49:31 +02:00
parent 0d0b43ee9e
commit 772d00b702
3 changed files with 4 additions and 8 deletions

View File

@ -22,7 +22,7 @@ lint:
# Bootstrap the build options if not set:
NAME?= OPNsense
TYPE?= opnsense
TYPE?= ${NAME:tl}
FLAVOUR?= OpenSSL
SETTINGS?= 16.1
DEVICE?= a10

View File

@ -486,12 +486,7 @@ bootstrap_packages()
echo ">>> Bootstrapping packages in ${BASEDIR}"
for PKG in $({
cd ${BASEDIR}
# find all package files, omitting plugins
find .${PACKAGESDIR}/All -type f \
\! -name "os-*" \! -name "ospriv-*"
}); do
for PKG in $(cd ${BASEDIR}; find .${PACKAGESDIR}/All -type f); do
# Adds all available packages and removes the
# ones that cannot be installed due to missing
# dependencies. This behaviour is desired.

View File

@ -43,7 +43,8 @@ setup_chroot ${STAGEDIR}
setup_distfiles ${STAGEDIR}
extract_packages ${STAGEDIR}
remove_packages ${STAGEDIR} ${@}
remove_packages ${STAGEDIR} ${@} "os-*" "ospriv-*" ${PRODUCT_TYPE} \
${PRODUCT_TYPE}-stable ${PRODUCT_TYPE}-devel
bootstrap_packages ${STAGEDIR}
echo ">>> Building packages..."