build/packages: allow easy purge even with wildcard

Use with care, but can be useful.  '*' does not pass easily so
let's use '%' instead.
This commit is contained in:
Franco Fichtner 2026-05-13 12:31:33 +02:00
parent 5efec777df
commit 2eb2b60a46
2 changed files with 2 additions and 0 deletions

View file

@ -861,6 +861,7 @@ remove_packages()
echo ">>> Removing packages in ${BASEDIR}: ${PKGLIST}"
for PKG in ${PKGLIST}; do
PKG=$(echo ${PKG} | tr '%' '*')
for PKGFILE in $(cd ${BASEDIR}${PACKAGESDIR}; \
find All -name "${PKG}-[0-9]*.pkg" -type f); do
rm ${BASEDIR}${PACKAGESDIR}/${PKGFILE}

View file

@ -41,6 +41,7 @@ AUXLIST=$(list_packages "${AUXLIST}" ${CONFIGDIR}/aux.conf)
setup_stage ${STAGEDIR}
setup_base ${STAGEDIR}
extract_packages ${STAGEDIR}
remove_packages ${STAGEDIR} ${@}
# The goal for aux packages is that they are part of the packages
# set for nightly builds until they are officially built using the