brew: lower curl minimum version for debian 7 CI
We do not use curl that much there, setting the HOMEBREW_ON_DEBIAN7 flag allows to lower the version, so that we can successfully pass the curl version check below.
This commit is contained in:
parent
d1cb2dd872
commit
dbb81dbe7e
@ -344,8 +344,14 @@ else
|
||||
: "${HOMEBREW_OS_VERSION:=$(uname -r)}"
|
||||
HOMEBREW_OS_USER_AGENT_VERSION="$HOMEBREW_OS_VERSION"
|
||||
|
||||
# Ensure the system Curl is a version that supports modern HTTPS certificates.
|
||||
HOMEBREW_MINIMUM_CURL_VERSION="7.41.0"
|
||||
if [[ -n $HOMEBREW_FORCE_HOMEBREW_ON_LINUX && -n $HOMEBREW_DEVELOPER && -n $HOMEBREW_ON_DEBIAN7 ]]
|
||||
then
|
||||
# Special version for our debian 7 docker container used to build patchelf and binutils
|
||||
HOMEBREW_MINIMUM_CURL_VERSION="7.25.0"
|
||||
else
|
||||
# Ensure the system Curl is a version that supports modern HTTPS certificates.
|
||||
HOMEBREW_MINIMUM_CURL_VERSION="7.41.0"
|
||||
fi
|
||||
curl_version_output="$($HOMEBREW_CURL --version 2>/dev/null)"
|
||||
curl_name_and_version="${curl_version_output%% (*}"
|
||||
if [[ $(numeric "${curl_name_and_version##* }") -lt $(numeric "$HOMEBREW_MINIMUM_CURL_VERSION") ]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user