aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-05-25 15:26:56 -0500
committerJack Nagel2013-05-25 15:27:10 -0500
commitc2624cd40e7856295b142161ca108376fb94bdb3 (patch)
treee79848b274861865126e1cab7d27f1eaee4ad149 /Library
parentfec99760d7fb25dbc7dc6d029286f8921c18816a (diff)
downloadhomebrew-c2624cd40e7856295b142161ca108376fb94bdb3.tar.bz2
build: expand dependencies only once
Closes #20081.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/build.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 6c5550154..e59b5be6a 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