Merge pull request #7915 from iMichka/link
link_overwrite: allow to overwrite files from alias
This commit is contained in:
commit
f72328d9c0
@ -1112,13 +1112,14 @@ class Formula
|
|||||||
return false if tab_tap.nil?
|
return false if tab_tap.nil?
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Formulary.factory(keg.name)
|
f = Formulary.factory(keg.name)
|
||||||
rescue FormulaUnavailableError
|
rescue FormulaUnavailableError
|
||||||
# formula for this keg is deleted, so defer to allowlist
|
# formula for this keg is deleted, so defer to allowlist
|
||||||
rescue TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError
|
rescue TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError
|
||||||
return false # this keg belongs to another formula
|
return false # this keg belongs to another formula
|
||||||
else
|
else
|
||||||
return false # this keg belongs to another formula
|
# this keg belongs to another unrelated formula
|
||||||
|
return false unless (f.aliases + f.oldname).include?(keg.name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
to_check = path.relative_path_from(HOMEBREW_PREFIX).to_s
|
to_check = path.relative_path_from(HOMEBREW_PREFIX).to_s
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user