diff options
| author | Mike McQuaid | 2012-07-22 16:07:20 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2012-07-22 16:09:58 +0100 |
| commit | d2a8df71ce314a874c5803a4b32841f8da14add0 (patch) | |
| tree | bf3aca9b477fc85cf3ccf2b60b8d77138226196b /Library | |
| parent | ba2d17b8d1e282ec6747efc1a4c9999b46c70ddc (diff) | |
| download | brew-d2a8df71ce314a874c5803a4b32841f8da14add0.tar.bz2 | |
Fix bottling keg-only brews.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/bottles.rb | 4 |
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 |
