diagnostic: note El Capitan upgrade permissions.

On all of the machines I have upgraded to OS X El Capitan, my /usr/local
directory has changed ownership. Since this message shows up as an error
during `brew update`, I figured it would be good to beef up the
explanation.

Closes Homebrew/homebrew#44670.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Grant Hutchins 2016-01-16 17:21:41 -06:00 committed by Mike McQuaid
parent d675fa0b5a
commit 624ca35f42

View File

@ -514,9 +514,10 @@ module Homebrew
unless HOMEBREW_PREFIX.writable_real? then <<-EOS.undent
The /usr/local directory is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the
software may change permissions on this directory. For example, upgrading
to OS X El Capitan has been known to do this. Some versions of the
"InstantOn" component of Airfoil or running Cocktail cleanup/optimizations
are known to do this.
are known to do this as well.
You should probably change the ownership and permissions of /usr/local
back to your user account.