Skip to content
Snippets Groups Projects
Commit 74d99d64 authored by Xu Cheng's avatar Xu Cheng
Browse files

cleanup: rescue TapFormulaAmbiguityError caused by Dependency#to_formula


Closes Homebrew/homebrew#40682.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 3ded1752
No related branches found
No related tags found
No related merge requests found
......@@ -124,9 +124,11 @@ module Homebrew
true
elsif formula.opt_prefix.directory?
# SHA records were added to INSTALL_RECEIPTS the same day as opt symlinks
Formula.installed.
select { |f| f.deps.any? { |d| d.to_formula.full_name == formula.full_name } }.
all? { |f| f.rack.subdirs.all? { |keg| Tab.for_keg(keg).HEAD } }
Formula.installed.select do |f|
f.deps.any? do |d|
d.to_formula.full_name == formula.full_name rescue d.name == formula.name
end
end.all? { |f| f.rack.subdirs.all? { |keg| Tab.for_keg(keg).HEAD } }
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment