From 05f92b5c98775b554a609d10c96f6c55377045be Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 25 May 2013 15:26:56 -0500 Subject: [PATCH] build: expand dependencies only once Closes Homebrew/homebrew#20081. --- Library/Homebrew/build.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index 6c5550154f..e59b5be6aa 100755 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -73,8 +73,7 @@ class Build def pre_superenv_hacks # Allow a formula to opt-in to the std environment. - ARGV.unshift '--env=std' if (f.env.std? or - f.recursive_dependencies.detect{|d| d.name == 'scons' }) and + ARGV.unshift '--env=std' if (f.env.std? or deps.any? { |d| d.name == 'scons' }) and not ARGV.include? '--env=super' end