diff options
| author | Jack Nagel | 2013-05-25 15:26:56 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-25 15:27:10 -0500 |
| commit | 05f92b5c98775b554a609d10c96f6c55377045be (patch) | |
| tree | 5747f05bd0f0b008455c98745c90d155e8b89f61 /Library/Homebrew/build.rb | |
| parent | 12158b201dc67e96cf8cceb700f569d16aab756d (diff) | |
| download | brew-05f92b5c98775b554a609d10c96f6c55377045be.tar.bz2 | |
build: expand dependencies only once
Closes Homebrew/homebrew#20081.
Diffstat (limited to 'Library/Homebrew/build.rb')
| -rwxr-xr-x | Library/Homebrew/build.rb | 3 |
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 |
