build: expand dependencies only once

Closes Homebrew/homebrew#20081.
This commit is contained in:
Jack Nagel 2013-05-25 15:26:56 -05:00
parent 12158b201d
commit 05f92b5c98

View File

@ -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