From f58506ea6f7000e7e6d3f6538dc5ff2c43ea7926 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Thu, 23 Jul 2015 00:34:57 -0400 Subject: FormulaInstaller: add prevent_build_flags to eliminate code repetition remove unneeded definition change variable in FormulaInstaller.check_build_flags from bf to build_flags --- Library/Homebrew/cmd/install.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Library/Homebrew/cmd/install.rb') diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index ce9bf5291..f41450be1 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -40,11 +40,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 - if !MacOS.can_build? - bf = ARGV.collect_build_flags - - raise BuildFlagsError.new(bf) if !bf.empty? - end + FormulaInstaller.prevent_build_flags unless MacOS.can_build? ARGV.formulae.each do |f| # head-only without --HEAD is an error -- cgit v1.2.3