audit_glibc: Fix the error message

"The glibc version must be 2.35" should have read
"The glibc version must be 2.23".
This commit is contained in:
Shaun Jackman 2022-07-29 09:30:18 -07:00
parent 43a34706ed
commit 291eacd482

View File

@ -410,13 +410,10 @@ module Homebrew
end end
def audit_glibc def audit_glibc
return if formula.name != "glibc"
return unless @core_tap return unless @core_tap
return if formula.name != "glibc" || formula.version.to_s == OS::CI_GLIBC_VERSION
version = formula.version.to_s problem "The glibc version must be #{OS::CI_GLIBC_VERSION}, as this is the version used by our CI on Linux. " \
return if version == OS::CI_GLIBC_VERSION
problem "The glibc version must be #{version}, as this is the version used by our CI on Linux. " \
"Glibc is for users who have a system Glibc with a lower version, " \ "Glibc is for users who have a system Glibc with a lower version, " \
"which allows them to use our Linux bottles, which were compiled against system Glibc on CI." "which allows them to use our Linux bottles, which were compiled against system Glibc on CI."
end end