diff options
| author | Mike McQuaid | 2012-03-07 21:30:03 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2012-03-10 18:10:40 +1300 |
| commit | 552dcdc7035d7114d47751d93630e37ae6d5bf24 (patch) | |
| tree | 3ba45e367fc79d77fee16b9919a44ca56f712d6f /Library/Homebrew/formula.rb | |
| parent | 4a306f32f468a0dfb1cd0faad861b3773babfa33 (diff) | |
| download | brew-552dcdc7035d7114d47751d93630e37ae6d5bf24.tar.bz2 | |
Move most bottle stuff to a bottles.rb file.
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index b3623b336..b1cb3dc0e 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1,6 +1,7 @@ require 'download_strategy' require 'formula_support' require 'hardware' +require 'bottles' require 'extend/fileutils' @@ -64,17 +65,6 @@ 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 - def explicitly_requested? # `ARGV.formulae` will throw an exception if it comes up with an empty list. # FIXME: `ARGV.formulae` shouldn't be throwing exceptions, see issue #8823 |
