aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build_environment.rb
diff options
context:
space:
mode:
authorJack Nagel2013-04-01 12:05:57 -0500
committerJack Nagel2013-04-01 16:17:35 -0500
commit1b0f0824fe50c54f03649423173a67f70f94a7a0 (patch)
tree566fc700236bdde8517b4b983d0102364830a65d /Library/Homebrew/build_environment.rb
parent462a41887823bbf72996c2ce324c5db30f77e89a (diff)
downloadbrew-1b0f0824fe50c54f03649423173a67f70f94a7a0.tar.bz2
Requirement: env DSL is evaluated in context of self, not ENV
This was meant to support: env do |req| append_path 'PATH', req.some_method ... end i.e., the block was evaluated in the context of ENV. But it turned out to be not so useful after all, so I'm ripping it out before something actually depends on it.
Diffstat (limited to 'Library/Homebrew/build_environment.rb')
-rw-r--r--Library/Homebrew/build_environment.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/build_environment.rb b/Library/Homebrew/build_environment.rb
index c10c9fb1c..e6dbf9734 100644
--- a/Library/Homebrew/build_environment.rb
+++ b/Library/Homebrew/build_environment.rb
@@ -22,8 +22,8 @@ class BuildEnvironment
@settings.include? :userpaths
end
- def modify_build_environment(context=nil)
- @procs.each { |p| ENV.instance_exec(context, &p) }
+ def modify_build_environment(receiver)
+ @procs.each { |p| receiver.instance_eval(&p) }
end
def _dump(*)