diff options
| author | Xu Cheng | 2015-08-22 14:19:16 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-08-22 14:19:22 +0800 |
| commit | 9f20679366ff47894f9e2ffb649eb818c5fc80cc (patch) | |
| tree | c96b2e1f024bb88cf36f55b7a3ee781334947fe0 /Library/Homebrew | |
| parent | 62be981016cdcee353ab538d089174fd8cce0f9e (diff) | |
| download | brew-9f20679366ff47894f9e2ffb649eb818c5fc80cc.tar.bz2 | |
formula_installer: fix when bottle pouring when creating new bottle
Formula#bottle_specification always exists, while Formula#bottle only
exists if the bottle is available and compatible.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index e47840a1f..550fd93ad 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -184,7 +184,7 @@ class FormulaInstaller if pour_bottle?(:warn => true) begin - install_relocation_tools unless formula.bottle.skip_relocation? + install_relocation_tools unless formula.bottle_specification.skip_relocation? pour rescue => e raise if ARGV.homebrew_developer? @@ -444,7 +444,9 @@ class FormulaInstaller keg = Keg.new(formula.prefix) link(keg) - fix_install_names(keg) unless @poured_bottle && formula.bottle.skip_relocation? + unless @poured_bottle && formula.bottle_specification.skip_relocation? + fix_install_names(keg) + end if formula.post_install_defined? if build_bottle? @@ -680,7 +682,7 @@ class FormulaInstaller end keg = Keg.new(formula.prefix) - unless formula.bottle.skip_relocation? + unless formula.bottle_specification.skip_relocation? keg.relocate_install_names Keg::PREFIX_PLACEHOLDER, HOMEBREW_PREFIX.to_s, Keg::CELLAR_PLACEHOLDER, HOMEBREW_CELLAR.to_s, :keg_only => formula.keg_only? end |
