From 2b8e0c8f795a6e9a44cbd9731e34a0fbc8110bdd Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 30 Nov 2013 16:36:48 -0600 Subject: Disable bottles when HOMEBREW_CELLAR.parent != HOMEBREW_PREFIX --- Library/Homebrew/bottles.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library') diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index c2c9db373..9c50a6b20 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -17,6 +17,7 @@ def install_bottle? f, options={:warn=>false} return false unless f.pour_bottle? return false unless f.default_build? return false unless bottle_current?(f) + return false if HOMEBREW_CELLAR.parent != HOMEBREW_PREFIX # XXX: see #24780 if f.bottle.cellar != :any && f.bottle.cellar != HOMEBREW_CELLAR.to_s if options[:warn] opoo "Building source; cellar of #{f}'s bottle is #{f.bottle.cellar}" -- cgit v1.2.3