upgrade: deduplicate list of outdated dependents

Use `uniq` on the list of outdated dependents to remove
duplicates, similar to a change made in #8500.
This commit is contained in:
Steve Peters 2020-09-18 00:58:53 -07:00
parent fd4ed35124
commit c04631320c

View File

@ -142,6 +142,7 @@ module Homebrew
outdated_dependents =
installed_formulae.flat_map(&:runtime_installed_formula_dependents)
.uniq
.select(&:outdated?)
return if outdated_dependents.blank? && already_broken_dependents.blank?