Copy config.log even if the build succeeds
This commit is contained in:
parent
977ae5f27d
commit
1ec1d36301
@ -260,11 +260,8 @@ class Formula
|
|||||||
# we allow formulae to do anything they want to the Ruby process
|
# we allow formulae to do anything they want to the Ruby process
|
||||||
# so load any deps before this point! And exit asap afterwards
|
# so load any deps before this point! And exit asap afterwards
|
||||||
yield self
|
yield self
|
||||||
rescue RuntimeError, SystemCallError
|
ensure
|
||||||
%w(config.log CMakeCache.txt).each do |fn|
|
(HOMEBREW_LOGS+name).install Dir["config.log", "CMakeCache.txt"]
|
||||||
(HOMEBREW_LOGS/name).install(fn) if File.file?(fn)
|
|
||||||
end
|
|
||||||
raise
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user