From ed87972e2d80782616fa2aa04771f710ee89f389 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 11 Sep 2015 19:15:22 +0800 Subject: [PATCH] bottle: only set prefix if un-relocatable Closes Homebrew/homebrew#43819. Signed-off-by: Xu Cheng --- Library/Homebrew/cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 961e44d17b..1df7b2b6ec 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