From 17ca7527f49f6f83ec57563a3f503cc81ea1cc50 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Jul 2020 09:23:04 +0100 Subject: [PATCH] formula: allow link_overwrite for old name too. --- Library/Homebrew/formula.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index b529758020..62d136b086 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1118,9 +1118,8 @@ class Formula rescue TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError return false # this keg belongs to another formula else - # this keg belongs to another formula - # but it is not an alias - return false unless f.aliases.include? keg.name + # this keg belongs to another unrelated formula + return false unless (f.aliases + f.oldname).include?(keg.name) end end to_check = path.relative_path_from(HOMEBREW_PREFIX).to_s