doctor: fix __check_linked_brew
This fixes the case when multiple versions of a formula are installed. Closes Homebrew/homebrew#40777. Fixes Homebrew/homebrew#40781. Fixes Homebrew/homebrew#40797. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
3f9a00dd58
commit
d9b1fec14f
@ -913,12 +913,12 @@ def check_for_autoconf
|
||||
end
|
||||
|
||||
def __check_linked_brew f
|
||||
prefix = f.prefix
|
||||
|
||||
prefix.find do |src|
|
||||
next if src == prefix
|
||||
dst = HOMEBREW_PREFIX + src.relative_path_from(prefix)
|
||||
return true if dst.symlink? && src == dst.resolved_path
|
||||
f.rack.subdirs.each do |prefix|
|
||||
prefix.find do |src|
|
||||
next if src == prefix
|
||||
dst = HOMEBREW_PREFIX + src.relative_path_from(prefix)
|
||||
return true if dst.symlink? && src == dst.resolved_path
|
||||
end
|
||||
end
|
||||
|
||||
false
|
||||
|
Loading…
x
Reference in New Issue
Block a user