aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2012-07-22 16:07:20 +0100
committerMike McQuaid2012-07-22 16:09:58 +0100
commitf3ed0f040729e13e0eaa5a546be166bbe051a3eb (patch)
treeba1d801013849d318e42cf8df00160f00d70656d
parent9b47c24932984718646d6bcb43b8648938ce6678 (diff)
downloadhomebrew-f3ed0f040729e13e0eaa5a546be166bbe051a3eb.tar.bz2
Fix bottling keg-only brews.
-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