diff options
| author | Max Howell | 2012-02-17 00:07:09 +0000 |
|---|---|---|
| committer | Max Howell | 2012-02-17 00:07:09 +0000 |
| commit | b5268a877e1de7c31e7f0b7e3abdfde61c5131ad (patch) | |
| tree | 8a0d764a72edc086e4a79423a80d1cd4ff8943ab /Library | |
| parent | 4504662033ae7e82659548d70dd1475e8c3a6e12 (diff) | |
| download | brew-b5268a877e1de7c31e7f0b7e3abdfde61c5131ad.tar.bz2 | |
Remove OSX-GCC from brew-doctor
Also fix undesired output if git isn't installed.
Refs Homebrew/homebrew#10244.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index b81a2f1a9..209260edd 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -733,7 +733,7 @@ end def check_git_status HOMEBREW_REPOSITORY.cd do - cmd = `git status -s Library/Homebrew/`.chomp + cmd = `git status -s Library/Homebrew/ 2> /dev/null`.chomp if system "/usr/bin/which -s git" and File.directory? '.git' and not cmd.empty? ohai "You have uncommitted modifications to Homebrew's core." puts "Unless you know what you are doing, you should run:" @@ -794,22 +794,6 @@ def check_for_enthought_python EOS end -def check_for_osx_gcc_installer - # Use the existence of Carbon headers to make a guess as to whether - # the osx-gcc-installer was used in lieu of Xcode. - unless File.exist? "/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h" - puts <<-EOS.undent - It appears that you are using the osx-gcc-installer. - - This is unsupported, and software that require headers and other - resources that are normally provided by Xcode will fail to compile. - - We recommend that you install Xcode. - - EOS - end -end - module Homebrew extend self def doctor old_stdout = $stdout @@ -854,7 +838,6 @@ module Homebrew extend self check_for_leopard_ssl check_git_version check_for_enthought_python - check_for_osx_gcc_installer ensure $stdout = old_stdout end |
