aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2011-07-26 16:01:30 -0700
committerAdam Vandenberg2011-07-26 16:01:30 -0700
commite2b21b0b4a8827f3328b34afcc4f60526b0008d3 (patch)
treee0c4bf3a45f3d344b78bc8e33f31397323e5a303 /Library/Homebrew
parent5b06a27e993d38ff278fd0cfe3c5ce1e6750f337 (diff)
downloadbrew-e2b21b0b4a8827f3328b34afcc4f60526b0008d3.tar.bz2
Fix brew doctor when no Xcode is detected.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/doctor.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 7e457a790..5a4b490b4 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -194,7 +194,13 @@ def check_gcc_versions
EOS
end
- if MacOS.xcode_version < "4.0"
+ if MacOS.xcode_version == nil
+ puts <<-EOS.undent
+ We couldn't detect any version of Xcode.
+ If you downloaded Xcode 4.1 from the App Store, you may need to run the installer.
+
+ EOS
+ elsif MacOS.xcode_version < "4.0"
if gcc_40 == nil
puts <<-EOS.undent
We couldn't detect gcc 4.0.x. Some formulae require this compiler.