Merge pull request #1449 from ilovezfs/bottle-improve-relocatability-check

bottle: improve relocatability check
This commit is contained in:
Mike McQuaid 2016-11-06 08:15:13 -05:00 committed by GitHub
commit bc67414b9a

View File

@ -251,6 +251,8 @@ module Homebrew
relocatable = false if keg_contain?(cellar, keg, ignores)
if prefix != prefix_check
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)
end
skip_relocation = relocatable && !keg.require_relocation?
end