formula: fix link_overwrite?

Fixes #7921
This commit is contained in:
Mike McQuaid 2020-07-06 17:02:58 +01:00
parent 7ed2ddd349
commit 7015fb1601
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -1119,7 +1119,7 @@ class Formula
return false # this keg belongs to another formula
else
# this keg belongs to another unrelated formula
return false unless (f.aliases + f.oldname).include?(keg.name)
return false unless (Array(f.aliases) + Array(f.oldname)).include?(keg.name)
end
end
to_check = path.relative_path_from(HOMEBREW_PREFIX).to_s