Use HOMEBREW_LOGS more consistently.
This commit is contained in:
parent
80c7a80a46
commit
37e2005e79
@ -381,8 +381,7 @@ end
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_access_logs
|
def check_access_logs
|
||||||
folder = Pathname.new('~/Library/Logs/Homebrew')
|
if HOMEBREW_LOGS.exist? and not HOMEBREW_LOGS.writable_real?
|
||||||
if folder.exist? and not folder.writable_real?
|
|
||||||
<<-EOS.undent
|
<<-EOS.undent
|
||||||
#{folder} isn't writable.
|
#{folder} isn't writable.
|
||||||
This can happen if you "sudo make install" software that isn't managed
|
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)
|
Homebrew.dump_build_env(env)
|
||||||
puts
|
puts
|
||||||
onoe "#{formula.name} did not build"
|
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:"
|
||||||
puts logs.map{|fn| " #{fn}"}.join("\n")
|
puts logs.map{|fn| " #{fn}"}.join("\n")
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user