aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/diagnostic.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-09-15 09:20:39 +0100
committerMike McQuaid2016-09-15 09:20:39 +0100
commit842d6ce8bdc2296869c41c5866bbf5f046ac6eb8 (patch)
treec587130ef82ba07e9896afd7a56fb8e2c6d3687b /Library/Homebrew/diagnostic.rb
parent099295163412b19470c500406738c50c2fb2fc8f (diff)
downloadbrew-842d6ce8bdc2296869c41c5866bbf5f046ac6eb8.tar.bz2
keg: add ALL_TOP_LEVEL_DIRECTORIES constant.
This is used in diagnostic (and will be used in other places later) rather than hard-coding other directories later.
Diffstat (limited to 'Library/Homebrew/diagnostic.rb')
-rw-r--r--Library/Homebrew/diagnostic.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index 1b3018251..7cc6371bd 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -308,8 +308,7 @@ module Homebrew
def check_access_prefix_directories
not_writable_dirs = []
- extra_dirs = ["lib/pkgconfig", "share/locale", "share/man", "opt"]
- (Keg::TOP_LEVEL_DIRECTORIES + extra_dirs).each do |dir|
+ Keg::ALL_TOP_LEVEL_DIRECTORIES.each do |dir|
path = HOMEBREW_PREFIX/dir
next unless path.exist?
next if path.writable_real?