mirror of
https://github.com/opnsense/tools.git
synced 2026-05-28 04:35:46 -04:00
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:
parent
5efec777df
commit
2eb2b60a46
2 changed files with 2 additions and 0 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue