From 4a306f32f468a0dfb1cd0faad861b3773babfa33 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 7 Mar 2012 20:44:19 -0500 Subject: Support bottles for non-Lion OSX versions. --- Library/Homebrew/formula.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Homebrew/formula.rb') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index eb3cd7b2e..b3623b336 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -64,6 +64,13 @@ class Formula return false end + def bottle_for_current_osx_version? + return true if /#{MacOS.cat}\.bottle\.tar\.gz$/.match(bottle_url) + # old brew bottle style + return true if MacOS.lion? && /-bottle\.tar\.gz$/.match(bottle_url) + return false + end + def bottle_up_to_date? !bottle_url.nil? && Pathname.new(bottle_url).version == version end -- cgit v1.2.3