aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2011-07-31 11:47:14 +0100
committerMike McQuaid2011-07-31 11:47:14 +0100
commit9289c0629910803432601e5e7cf4d974e03b1be0 (patch)
tree2b8b4d524b290644bc840a6a07399ba8bd67116c /Library
parent733e280e61bc74258993fd19dedd8c0c3d1fd5be (diff)
downloadbrew-9289c0629910803432601e5e7cf4d974e03b1be0.tar.bz2
Don't install bottles in non-default HOMEBREW_PREFIX.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ARGV.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index a78073b9b..3fef2dcd0 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -64,7 +64,8 @@ module HomebrewArgvExtension
end
def build_from_source?
- return true if flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE'] or not MacOS.lion?
+ return true if flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE'] \
+ or not MacOS.lion? or HOMEBREW_PREFIX.to_s != '/usr/local'
options = options_only
options.delete '--universal'
not options.empty?