diff options
| author | Mike McQuaid | 2012-02-09 21:05:17 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2012-02-09 21:05:17 +0000 |
| commit | 8fd8e2d7278fca02f2b9495e38b5944bb86daecd (patch) | |
| tree | db78d8b3b7e7756ff9ebed4b8d6b4f043c755c26 /Library/Homebrew/formula.rb | |
| parent | aa7f350841da27e02273c2a6ed167c7ede59a3cc (diff) | |
| download | homebrew-8fd8e2d7278fca02f2b9495e38b5944bb86daecd.tar.bz2 | |
Split bottle logic.
Fixes #8805.
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index d53316fa7..28592eb72 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -57,6 +57,10 @@ class Formula 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 |
