aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-10-08 23:32:22 -0500
committerJack Nagel2013-10-08 23:32:22 -0500
commitb2516f99897414a15a37ca9ed0184054ca4c2224 (patch)
tree85e67dff9f2da0ab382b308885ad96ef204c45f5 /Library/Homebrew
parenta5f68bb874bdf06decdae38ddde776e7c2cb31c7 (diff)
downloadbrew-b2516f99897414a15a37ca9ed0184054ca4c2224.tar.bz2
doctor: avoid using MACOS_VERSION
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/doctor.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index e7123fd7c..07d51c345 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -831,11 +831,12 @@ def check_for_linked_keg_only_brews
end
def check_for_MACOSX_DEPLOYMENT_TARGET
- target_var = ENV['MACOSX_DEPLOYMENT_TARGET']
- if target_var and target_var != MACOS_VERSION.to_s then <<-EOS.undent
- MACOSX_DEPLOYMENT_TARGET was set to #{target_var}
+ target = ENV.fetch('MACOSX_DEPLOYMENT_TARGET') { return }
+
+ unless target == MacOS.version.to_s then <<-EOS.undent
+ MACOSX_DEPLOYMENT_TARGET was set to #{target.inspect}
This is used by Fink, but having it set to a value different from the
- current system version (#{MACOS_VERSION}) can cause problems, compiling
+ current system version (#{MacOS.version}) can cause problems, compiling
Git for instance, and should probably be removed.
EOS
end