aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorSamuel Cochran2011-07-25 10:21:44 +0800
committerAdam Vandenberg2011-07-27 08:16:16 -0700
commite3e7831b48b7dbcb435f5233adcff33f91aef3da (patch)
tree299b58f3805fc524f0a29643f0874625feb1284a /Library/Homebrew
parent72889ea6a8c1834a6e4e96c78ba8ed97ff26f059 (diff)
downloadbrew-e3e7831b48b7dbcb435f5233adcff33f91aef3da.tar.bz2
Add MacOS.lion? for MACOS_VERSION == 10.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/utils.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 74d5d0f91..e5d7fa81a 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -8,7 +8,7 @@ class Tty
def yellow; underline 33 ; end
def reset; escape 0; end
def em; underline 39; end
-
+
private
def color n
escape "0;#{n}"
@@ -330,6 +330,10 @@ module MacOS extend self
10.6 <= MACOS_VERSION # Actually Snow Leopard or newer
end
+ def lion?
+ 10.7 == MACOS_VERSION
+ end
+
def prefer_64_bit?
Hardware.is_64_bit? and 10.6 <= MACOS_VERSION
end