aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-08 11:16:37 -0700
committerAdam Vandenberg2011-04-09 09:36:30 -0700
commitb782d9da90d561638d9697a98d99faaa61b64453 (patch)
tree402c7460717df2d37ce48c61960b121fb74941a5 /Library/Homebrew/utils.rb
parentb5b6da2c6c27b9784808329c2c9b45f1976647a9 (diff)
downloadhomebrew-b782d9da90d561638d9697a98d99faaa61b64453.tar.bz2
Normalize use of MACOS_VERSION
Diffstat (limited to 'Library/Homebrew/utils.rb')
-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