aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/bottles.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index ad74c6710..20d675a66 100644
--- a/Library/Homebrew/bottles.rb
+++ b/Library/Homebrew/bottles.rb
@@ -18,7 +18,9 @@ def install_bottle? f
end
def built_bottle? f
- Tab.for_formula(f).built_bottle
+ f = Formula.factory f unless f.kind_of? Formula
+ return false unless f.installed?
+ Tab.for_keg(f.installed_prefix).built_bottle
end
def bottle_current? f