Skip to content
Snippets Groups Projects
Commit 37e2005e authored by Mike McQuaid's avatar Mike McQuaid
Browse files

Use HOMEBREW_LOGS more consistently.

parent 80c7a80a
No related branches found
No related tags found
No related merge requests found
......@@ -381,8 +381,7 @@ end
end
def check_access_logs
folder = Pathname.new('~/Library/Logs/Homebrew')
if folder.exist? and not folder.writable_real?
if HOMEBREW_LOGS.exist? and not HOMEBREW_LOGS.writable_real?
<<-EOS.undent
#{folder} isn't writable.
This can happen if you "sudo make install" software that isn't managed
......
......@@ -200,7 +200,7 @@ class BuildError < Homebrew::InstallationError
Homebrew.dump_build_env(env)
puts
onoe "#{formula.name} did not build"
unless (logs = Dir["#{ENV['HOME']}/Library/Logs/Homebrew/#{formula}/*"]).empty?
unless (logs = Dir["#{HOMEBREW_LOGS}/#{formula}/*"]).empty?
puts "Logs:"
puts logs.map{|fn| " #{fn}"}.join("\n")
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment