Mirror unlink logic when checking for linked keg-only formulae
This commit is contained in:
parent
260a351663
commit
a2a75aca1a
@ -809,12 +809,13 @@ end
|
||||
def __check_linked_brew f
|
||||
links_found = []
|
||||
|
||||
f.prefix.find do |src|
|
||||
dst=HOMEBREW_PREFIX+src.relative_path_from(f.prefix)
|
||||
next unless dst.symlink?
|
||||
prefix = f.prefix
|
||||
|
||||
dst_points_to = dst.realpath()
|
||||
next unless dst_points_to.to_s == src.to_s
|
||||
prefix.find do |src|
|
||||
next if src == prefix
|
||||
dst = HOMEBREW_PREFIX + src.relative_path_from(prefix)
|
||||
|
||||
next if !dst.symlink? || !dst.exist? || src != src.resolved_path
|
||||
|
||||
if src.directory?
|
||||
Find.prune
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user