Merge pull request #4328 from woodruffw/install-check-dev-tools

[WIP] formula_installer: Don't check devtools if pouring
This commit is contained in:
ilovezfs 2018-06-24 18:20:34 -07:00 committed by GitHub
commit 78757bf56e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@ require "emoji"
require "development_tools"
require "cache_store"
require "linkage_checker"
require "install"
class FormulaInstaller
include FormulaCellarChecks
@ -219,6 +220,10 @@ class FormulaInstaller
end
def install
if !formula.bottle_unneeded? && !pour_bottle? && DevelopmentTools.installed?
Homebrew::Install.check_development_tools
end
# not in initialize so upgrade can unlink the active keg before calling this
# function but after instantiating this class so that it can avoid having to
# relink the active keg if possible (because it is slow).

View File

@ -47,7 +47,6 @@ module Homebrew
def perform_preinstall_checks
check_ppc
check_writable_install_location
check_development_tools if DevelopmentTools.installed?
check_cellar
end
end