Use parallelized list_csv as backend for list_supported
This commit is contained in:
parent
f1ebc0c505
commit
e935f80928
29
quickget
29
quickget
|
@ -343,8 +343,8 @@ function csv_data() {
|
||||||
done
|
done
|
||||||
elif [[ "${OS}" == "windows"* ]]; then
|
elif [[ "${OS}" == "windows"* ]]; then
|
||||||
"languages_${OS}"
|
"languages_${OS}"
|
||||||
for OPTION in "${LANGS[@]}"; do
|
for LANG in "${LANGS[@]}"; do
|
||||||
echo "${DISPLAY_NAME},${OS},${RELEASE},${OPTION},${DOWNLOADER},${PNG},${SVG}"
|
echo "${DISPLAY_NAME},${OS},${RELEASE},${LANG},${DOWNLOADER},${PNG},${SVG}"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "${DISPLAY_NAME},${OS},${RELEASE},,${DOWNLOADER},${PNG},${SVG}"
|
echo "${DISPLAY_NAME},${OS},${RELEASE},,${DOWNLOADER},${PNG},${SVG}"
|
||||||
|
@ -372,30 +372,7 @@ function create_config() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function list_supported() {
|
function list_supported() {
|
||||||
# output OS RELEASE EDITION (usefull for straight testing...)
|
list_csv | cut -d ',' -f2,3,4 | tr ',' ' '
|
||||||
local FUNC=""
|
|
||||||
local OS=""
|
|
||||||
for OS in $(os_support); do
|
|
||||||
FUNC="${OS}"
|
|
||||||
if [[ "${OS}" == *ubuntu* && "${OS}" != "ubuntu-server" ]]; then
|
|
||||||
FUNC="ubuntu"
|
|
||||||
fi
|
|
||||||
for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases
|
|
||||||
# If the OS has an editions_() function, use it.
|
|
||||||
if [[ $(type -t "editions_${OS}") == function ]]; then
|
|
||||||
for EDITION in $(editions_"${OS}"); do
|
|
||||||
echo "${OS} ${RELEASE} ${EDITION}"
|
|
||||||
done
|
|
||||||
elif [[ "${OS}" == "windows"* ]]; then
|
|
||||||
"languages_${OS}"
|
|
||||||
for LANG in "${LANGS[@]}"; do
|
|
||||||
echo "${OS} ${RELEASE} ${LANG}"
|
|
||||||
done
|
|
||||||
else
|
|
||||||
echo "${OS} ${RELEASE}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue