disable version checks for createrepo servers
This commit is contained in:
@@ -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)?
|
||||
|
||||
Reference in New Issue
Block a user