aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2011-07-29 14:56:59 +0100
committerMax Howell2011-07-29 14:56:59 +0100
commit21acfc1c7e66babf112196812fdfcf442edf3a97 (patch)
tree72d7306b9fc07de9fa6d40aa6f3ef7fb9f6f6c09 /Library
parenta95473a5a6a328f8d99da1634cd35bff9c4b5524 (diff)
downloadhomebrew-21acfc1c7e66babf112196812fdfcf442edf3a97.tar.bz2
Writability for /usr/local is no longer required
Provided the user installed with our installer anyway. It creates all the directories that Homebrew will need during its life thus negating the need for root writability.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 40f74f4cd..0d6cb04ac 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -242,24 +242,6 @@ def __check_subdir_access base
end
end
-def check_access_usr_local
- return unless HOMEBREW_PREFIX.to_s == '/usr/local'
-
- unless Pathname('/usr/local').writable?
- puts <<-EOS.undent
- The /usr/local directory is not writable.
-
- Even if this folder was writable when you installed Homebrew, other
- software may change permissions on this folder. Some versions of the
- "InstantOn" component of Airfoil are known to do this.
-
- You should probably change the ownership and permissions of /usr/local
- back to your user account.
-
- EOS
- end
-end
-
def check_access_share_locale
__check_subdir_access 'share/locale'
end
@@ -750,7 +732,6 @@ module Homebrew extend self
check_for_other_package_managers
check_for_x11
check_for_nonstandard_x11
- check_access_usr_local
check_access_include
check_access_etc
check_access_share