From d0a1800e374a164158ce6ef2d5f53fe6e8436903 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 12 Jan 2015 21:26:18 -0500 Subject: [PATCH] doctor: check access on all important HOMEBREW_PREFIX subdirs --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index d94742459c..5c5f6701b9 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -419,7 +419,7 @@ def check_access_usr_local end end -%w{include etc lib lib/pkgconfig share}.each do |d| +(Keg::TOP_LEVEL_DIRECTORIES + ["lib/pkgconfig"]).each do |d| define_method("check_access_#{d.sub("/", "_")}") do dir = HOMEBREW_PREFIX.join(d) if dir.exist? && !dir.writable_real? then <<-EOS.undent