disable version checks for createrepo servers

This commit is contained in:
2021-12-02 12:34:07 -05:00
parent 2e4d3684bf
commit 5f4486d16d

View File

@@ -345,6 +345,7 @@ getLatestVersion() {
# Peg older versions to prevent ABI and dependency mismatches in automatic mode
# This can be overriden w/ --mcversion
# TODO need user input here
if ! [[ -v _createrepo ]]; then # disable version checks for createrepo servers
if [[ "$ID" == "ubuntu" ]]; then
# [[ "$VERSION_CODENAME" =~ ^(focal|groovy|hirsute|impish)$ ]] && \
# _base="bullseye"
@@ -371,6 +372,7 @@ getLatestVersion() {
_version_source="compatibility lookup" && \
debug "To override, use --mcversion" && \
return 0
fi
# Use a containerized package manager
# TODO but how to determine build distro ($_base=buster)?