aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2013-08-20 18:51:11 -0500
committerJack Nagel2013-08-20 18:51:11 -0500
commitdb1075fdc7be4dbffc558fcb223410a335a42660 (patch)
tree8c2efebe52116faabf558970b4ce9cde513635b6 /Library/Homebrew/formula.rb
parent71586d09aa42a5a6f67fb7006e1cbe178ec27f52 (diff)
downloadbrew-db1075fdc7be4dbffc558fcb223410a335a42660.tar.bz2
Use ENV.update to restore removed variables
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index bb1d91687..c54df055d 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -583,9 +583,7 @@ class Formula
raise BuildError.new(self, cmd, args, $?)
ensure
f.close if f and not f.closed?
- removed_ENV_variables.each do |key, value|
- ENV[key] = value
- end if removed_ENV_variables
+ ENV.update(removed_ENV_variables) if removed_ENV_variables
end
private