Merge pull request #5577 from MikeMcQuaid/vim-relocatable-fix

bottle: detect vim's lack of relocatableness.
This commit is contained in:
Mike McQuaid 2019-01-21 21:27:08 +00:00 committed by GitHub
commit 9519df379d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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