Make check for stray developer dir more specific
It looks like there can be harmless stuff leftover in /Developer/Library, even after Xcode uninstalls older versions. The existence of the uninstall-developer-folder script should be a better indicator. Fixes Homebrew/homebrew#14970.
This commit is contained in:
parent
d56957d2f8
commit
3473bbc010
@ -232,7 +232,9 @@ def check_for_latest_xcode
|
||||
end
|
||||
|
||||
def check_for_stray_developer_directory
|
||||
if MacOS::Xcode.version >= "4.3" and File.exist? "/Developer/Library"
|
||||
# if the uninstaller script isn't there, it's a good guess neither are
|
||||
# any troublesome leftover Xcode files
|
||||
if MacOS::Xcode.version >= "4.3" and File.exist? "/Developer/Library/uninstall-developer-folder"
|
||||
return <<-EOS.undent
|
||||
You have leftover files from an older version of Xcode.
|
||||
You should delete them using:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user