Fix local installation of bottles.

Fixes Homebrew/homebrew#18631.
This commit is contained in:
Mike McQuaid 2013-03-21 10:32:52 +00:00
parent 46476ae4d0
commit 8a33564cab

View File

@ -357,7 +357,7 @@ class FormulaInstaller
def fix_install_names
Keg.new(f.prefix).fix_install_names
if @poured_bottle
if @poured_bottle and f.bottle
old_prefix = f.bottle.prefix
new_prefix = HOMEBREW_PREFIX.to_s
old_cellar = f.bottle.cellar