aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-08 11:16:37 -0700
committerAdam Vandenberg2011-04-09 09:36:30 -0700
commit8e0c96c45de35f25c79957763de04235e7e5d48d (patch)
tree08462bf96c70d1743b7a5a99ab8a63c5249b14b7 /Library
parente4dce3d1c9b2a4afe4df246be197f7a4fa8df9a7 (diff)
downloadbrew-8e0c96c45de35f25c79957763de04235e7e5d48d.tar.bz2
Normalize use of MACOS_VERSION
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 0dc1a4b51..080a099ea 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -316,8 +316,16 @@ module MacOS extend self
false
end
+ def leopard?
+ 10.5 == MACOS_VERSION
+ end
+
+ def snow_leopard?
+ 10.6 <= MACOS_VERSION # Actually Snow Leopard or newer
+ end
+
def prefer_64_bit?
- MACOS_VERSION >= 10.6 and Hardware.is_64_bit?
+ Hardware.is_64_bit? and 10.6 <= MACOS_VERSION
end
end