formula_installer: skip bottle check on old Macs

Fixes #10832.
This commit is contained in:
Carlo Cabrera 2021-03-11 17:49:43 +00:00
parent 21314eb59b
commit de676841f6
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -246,7 +246,9 @@ class FormulaInstaller
# don't want to complain about no bottle available if doing an
# upgrade/reinstall/dependency install (but do in the case the bottle
# check fails)
elsif !Homebrew::EnvConfig.developer? && (!installed_as_dependency? || !formula.any_version_installed?)
elsif !Homebrew::EnvConfig.developer? &&
(!installed_as_dependency? || !formula.any_version_installed?) &&
(!OS.mac? || !OS::Mac.outdated_release?)
<<~EOS
#{formula}: no bottle available!
EOS