bottle: only set prefix if un-relocatable

Closes Homebrew/homebrew#43819.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-09-11 19:15:22 +08:00
parent e23cca8d84
commit ed87972e2d

View File

@ -217,7 +217,6 @@ module Homebrew
bottle = BottleSpecification.new bottle = BottleSpecification.new
bottle.root_url(root_url) if root_url bottle.root_url(root_url) if root_url
bottle.prefix prefix
if relocatable if relocatable
if skip_relocation if skip_relocation
bottle.cellar :any_skip_relocation bottle.cellar :any_skip_relocation
@ -226,6 +225,7 @@ module Homebrew
end end
else else
bottle.cellar cellar bottle.cellar cellar
bottle.prefix prefix
end end
bottle.revision bottle_revision bottle.revision bottle_revision
bottle.sha256 bottle_path.sha256 => bottle_tag bottle.sha256 bottle_path.sha256 => bottle_tag