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
|
def __check_linked_brew f
|
||||||
links_found = []
|
links_found = []
|
||||||
|
|
||||||
f.prefix.find do |src|
|
prefix = f.prefix
|
||||||
dst=HOMEBREW_PREFIX+src.relative_path_from(f.prefix)
|
|
||||||
next unless dst.symlink?
|
|
||||||
|
|
||||||
dst_points_to = dst.realpath()
|
prefix.find do |src|
|
||||||
next unless dst_points_to.to_s == src.to_s
|
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?
|
if src.directory?
|
||||||
Find.prune
|
Find.prune
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user