Fix bottling keg-only brews.

This commit is contained in:
Mike McQuaid 2012-07-22 16:07:20 +01:00
parent ba2d17b8d1
commit d2a8df71ce

View File

@ -18,7 +18,9 @@ def install_bottle? f
end end
def built_bottle? f 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 end
def bottle_current? f def bottle_current? f