aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-08-29 22:31:55 -0500
committerJack Nagel2014-08-29 22:35:41 -0500
commitaa8b0bb9bf91da1de0073acf3d85eeea37558909 (patch)
tree219d6f7274745debf8eb449253fcc084b6a28115 /Library/Homebrew
parentb6242778fe2827b3de63f991b3d44a3bee9e790a (diff)
downloadhomebrew-aa8b0bb9bf91da1de0073acf3d85eeea37558909.tar.bz2
Copy config.log even if the build succeeds
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 4088f50da..8bbd822f4 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -260,11 +260,8 @@ class Formula
# we allow formulae to do anything they want to the Ruby process
# so load any deps before this point! And exit asap afterwards
yield self
- rescue RuntimeError, SystemCallError
- %w(config.log CMakeCache.txt).each do |fn|
- (HOMEBREW_LOGS/name).install(fn) if File.file?(fn)
- end
- raise
+ ensure
+ (HOMEBREW_LOGS+name).install Dir["config.log", "CMakeCache.txt"]
end
end
end