diff options
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
