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