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
commit1c27bcdaec9da72830f11c6ff4324150f15259b1 (patch)
treef49d12867949c40e5aed0087a68a554b826b3fbe /Library/Homebrew
parentd82191f3f37acee21e8f6719e6620877e2dd1df5 (diff)
downloadhomebrew-1c27bcdaec9da72830f11c6ff4324150f15259b1.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