Use ENV.update to restore removed variables
This commit is contained in:
parent
71586d09aa
commit
db1075fdc7
@ -583,9 +583,7 @@ class Formula
|
|||||||
raise BuildError.new(self, cmd, args, $?)
|
raise BuildError.new(self, cmd, args, $?)
|
||||||
ensure
|
ensure
|
||||||
f.close if f and not f.closed?
|
f.close if f and not f.closed?
|
||||||
removed_ENV_variables.each do |key, value|
|
ENV.update(removed_ENV_variables) if removed_ENV_variables
|
||||||
ENV[key] = value
|
|
||||||
end if removed_ENV_variables
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user