diff options
| author | Jack Nagel | 2014-09-05 15:22:51 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-05 15:23:00 -0500 |
| commit | 638363ac8bab3baed6824bafd66955919d062a66 (patch) | |
| tree | e865022b1cc1ab33df87feef597fdacfd4984b4c /Library/Homebrew | |
| parent | 7c470607028c041ccaecd666fcf5c0577ce6bb71 (diff) | |
| download | brew-638363ac8bab3baed6824bafd66955919d062a66.tar.bz2 | |
Ensure log file is closed
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 9782fffa2..3f09b14e3 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -546,6 +546,8 @@ class Formula Homebrew.dump_build_config(log) raise BuildError.new(self, cmd, args) end + ensure + log.close if log && !log.closed? end private |
