build: partially revert back to older code removed in 968e273e

This commit is contained in:
Franco Fichtner 2022-10-18 14:46:37 +02:00
parent 64e0e1b2f7
commit cb807b82ae
1 changed files with 9 additions and 5 deletions

View File

@ -1232,11 +1232,15 @@ list_config()
list_packages()
{
local LIST_MATCH=1
local LIST_ENV=${1}
shift
if [ -n "${1}" ]; then
echo "${1}" | tr ',[:blank:]' '\n'
else
shift
list_config ${@}
if [ -n "${LIST_ENV}" ]; then
for LIST_ORIGIN in ${LIST_ENV}; do
echo ${LIST_ORIGIN}
done
return
fi
list_config ${@}
}