From aa8b0bb9bf91da1de0073acf3d85eeea37558909 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 29 Aug 2014 22:31:55 -0500 Subject: Copy config.log even if the build succeeds --- Library/Homebrew/formula.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Library/Homebrew') 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 -- cgit v1.2.3