aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-21 20:14:30 -0800
committerAdam Vandenberg2012-02-21 20:14:56 -0800
commitc34cdbbeb91984e5b4c326b4e2e419adf6977d4c (patch)
tree70afe30237eff140cbddce3d6497eb5ca2e91b99 /Library/Homebrew/utils.rb
parenta8e4cf4f805eef3e19569ec4d4ad1f70c525493f (diff)
downloadbrew-c34cdbbeb91984e5b4c326b4e2e419adf6977d4c.tar.bz2
Yield to the inevitable
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 2ad5cbc78..bb2e7dd83 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -449,11 +449,15 @@ module MacOS extend self
end
def lion?
- 10.7 <= MACOS_VERSION #Actually Lion or newer
+ 10.7 <= MACOS_VERSION # Actually Lion or newer
+ end
+
+ def mountain_lion?
+ 10.8 <= MACOS_VERSION # Actually Mountain Lion or newer
end
def prefer_64_bit?
- Hardware.is_64_bit? and 10.6 <= MACOS_VERSION
+ Hardware.is_64_bit? and not leopard?
end
def bottles_supported?