Don't abort if /usr/local is not writable

Since this is our new policy for /usr/local.
This commit is contained in:
Max Howell 2011-07-29 16:57:22 +01:00
parent e354b70db3
commit 1cfad8f502

View File

@ -23,7 +23,7 @@ module Homebrew extend self
def check_writable_install_location def check_writable_install_location
raise "Cannot write to #{HOMEBREW_CELLAR}" if HOMEBREW_CELLAR.exist? and not HOMEBREW_CELLAR.writable? raise "Cannot write to #{HOMEBREW_CELLAR}" if HOMEBREW_CELLAR.exist? and not HOMEBREW_CELLAR.writable?
raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable? raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable? or HOMEBREW_PREFIX.to_s == '/usr/local'
end end
def check_cc def check_cc