bottle: detect vim's lack of relocatableness.

References https://github.com/Homebrew/homebrew-core/issues/35236.
This commit is contained in:
Mike McQuaid 2019-01-21 20:17:59 +00:00
parent b93dc7e84b
commit 88b98969a5
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -365,6 +365,7 @@ module Homebrew
relocatable = false if keg_contain_absolute_symlink_starting_with?(prefix, keg)
relocatable = false if keg_contain?("#{prefix}/etc", keg, ignores)
relocatable = false if keg_contain?("#{prefix}/var", keg, ignores)
relocatable = false if keg_contain?("#{prefix}/share/vim", keg, ignores)
end
skip_relocation = relocatable && !keg.require_relocation?
end