Disable version limits for building RPMs

This commit is contained in:
2021-12-02 19:54:52 -05:00
parent b64bbf3ccd
commit f6af090431

View File

@@ -343,7 +343,8 @@ 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 ]] || [[ -v _build && ! -v _install ]]; then # disable version checks for createrepo or rpmbuild (servers) # disable version checks for createrepo or rpmbuild (servers)
if [[ ! -v _createrepo ]] || ! [[ -v _build && ! -v _install ]]; then
if [[ "$ID" == "ubuntu" ]]; then if [[ "$ID" == "ubuntu" ]]; then
# [[ "$VERSION_CODENAME" =~ ^(focal|groovy|hirsute|impish)$ ]] && \ # [[ "$VERSION_CODENAME" =~ ^(focal|groovy|hirsute|impish)$ ]] && \
# _base="bullseye" # _base="bullseye"