aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorMike McQuaid2012-02-09 21:05:17 +0000
committerMike McQuaid2012-02-09 21:05:17 +0000
commit27ecdb4266a6edf106f9b9f4a8fb80241fcc8e8a (patch)
treed14905d4f5427eca77adcbd75ebeb63576d6c425 /Library/Homebrew/formula.rb
parent469ad7bee539999cd4d61133a665bf20cf5e1733 (diff)
downloadbrew-27ecdb4266a6edf106f9b9f4a8fb80241fcc8e8a.tar.bz2
Split bottle logic.
Fixes Homebrew/homebrew#8805.
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb4
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