aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/bottle.rb
diff options
context:
space:
mode:
authorXu Cheng2015-09-11 19:15:22 +0800
committerXu Cheng2015-09-12 01:39:00 +0800
commited87972e2d80782616fa2aa04771f710ee89f389 (patch)
treec2081dc173ed1686af3d691cb67147f4332a53bd /Library/Homebrew/cmd/bottle.rb
parente23cca8d844971eb4743f4222ddc95b7a2077757 (diff)
downloadbrew-ed87972e2d80782616fa2aa04771f710ee89f389.tar.bz2
bottle: only set prefix if un-relocatable
Closes Homebrew/homebrew#43819. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/cmd/bottle.rb')
-rw-r--r--Library/Homebrew/cmd/bottle.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 961e44d17..1df7b2b6e 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -217,7 +217,6 @@ module Homebrew
bottle = BottleSpecification.new
bottle.root_url(root_url) if root_url
- bottle.prefix prefix
if relocatable
if skip_relocation
bottle.cellar :any_skip_relocation
@@ -226,6 +225,7 @@ module Homebrew
end
else
bottle.cellar cellar
+ bottle.prefix prefix
end
bottle.revision bottle_revision
bottle.sha256 bottle_path.sha256 => bottle_tag