Merge pull request #10836 from carlocab/unsupported-versions

formula_installer: skip bottle check on old Macs
This commit is contained in:
Carlo Cabrera 2021-03-12 21:09:08 +00:00 committed by GitHub
commit 636ac91817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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