From 3a127e405e45a4d95a809651553ff4a30ed95e3d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 6 Jul 2016 11:07:24 +0100 Subject: development_tools: add installed? method. (#455) --- Library/Homebrew/cmd/install.rb | 2 +- Library/Homebrew/cmd/reinstall.rb | 2 +- Library/Homebrew/cmd/upgrade.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 56cfbc24f..df9850307 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -96,7 +96,7 @@ module Homebrew # if the user's flags will prevent bottle only-installations when no # developer tools are available, we need to stop them early on - FormulaInstaller.prevent_build_flags unless MacOS.has_apple_developer_tools? + FormulaInstaller.prevent_build_flags unless DevelopmentTools.installed? ARGV.formulae.each do |f| # head-only without --HEAD is an error diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index 4a23c00ec..dc3a02cef 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -5,7 +5,7 @@ require "formula_installer" module Homebrew def reinstall - FormulaInstaller.prevent_build_flags unless MacOS.has_apple_developer_tools? + FormulaInstaller.prevent_build_flags unless DevelopmentTools.installed? ARGV.resolved_formulae.each { |f| reinstall_formula(f) } end diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index c296e7757..e914da3a3 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -13,7 +13,7 @@ require "cleanup" module Homebrew def upgrade - FormulaInstaller.prevent_build_flags unless MacOS.has_apple_developer_tools? + FormulaInstaller.prevent_build_flags unless DevelopmentTools.installed? Homebrew.perform_preinstall_checks -- cgit v1.2.3