diff options
| author | Mike McQuaid | 2016-11-06 08:21:11 -0500 |
|---|---|---|
| committer | GitHub | 2016-11-06 08:21:11 -0500 |
| commit | cfaa05f841f000f79331556c8d9cbb2b08bc8426 (patch) | |
| tree | 312258b87fc809a1bd69c12ec98fbf0f58bdd541 /Library/Homebrew/cmd | |
| parent | 77a6878779e671f97de84f7ee40de05f7288c807 (diff) | |
| parent | a1e798d964599230800a12172aec0d70299937cd (diff) | |
| download | brew-cfaa05f841f000f79331556c8d9cbb2b08bc8426.tar.bz2 | |
Merge pull request #1443 from MikeMcQuaid/better-development-tools-checks
Improve debugging information based on failures
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index dcf46e5fa..16639c4aa 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -223,25 +223,12 @@ module Homebrew def check_development_tools checks = Diagnostic::Checks.new - all_development_tools_checks = checks.development_tools_checks + - checks.fatal_development_tools_checks - all_development_tools_checks.each do |check| + checks.fatal_development_tools_checks.each do |check| out = checks.send(check) next if out.nil? - if checks.fatal_development_tools_checks.include?(check) - odie out - else - opoo out - end + ofail out end - end - - def check_macports - return if MacOS.macports_or_fink.empty? - - opoo "It appears you have MacPorts or Fink installed." - puts "Software installed with other package managers causes known problems for" - puts "Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again." + exit 1 if Homebrew.failed? end def check_cellar @@ -283,8 +270,5 @@ module Homebrew # another formula. In that case, don't generate an error, just move on. rescue CannotInstallFormulaError => e ofail e.message - rescue BuildError - check_macports - raise end end |
