Merge pull request #7922 from MikeMcQuaid/formula-fix-link-overwrite

formula: fix link_overwrite?
This commit is contained in:
Mike McQuaid 2020-07-06 17:39:58 +01:00 committed by GitHub
commit 38f4c255c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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