reject installed before to not print already up to date

This commit is contained in:
thibhero 2025-07-17 19:29:56 -04:00
parent ea240e5aad
commit 4e4617fd37

View File

@ -354,6 +354,9 @@ module Homebrew
#{skipped * "\n "} #{skipped * "\n "}
EOS EOS
end end
upgradeable.reject! { |f| FormulaInstaller.installed.include?(f) }
# Print the upgradable dependents. # Print the upgradable dependents.
if upgradeable.blank? if upgradeable.blank?
ohai "No outdated dependents to upgrade!" unless dry_run ohai "No outdated dependents to upgrade!" unless dry_run
@ -375,8 +378,6 @@ module Homebrew
puts formulae_upgrades.join(", ") puts formulae_upgrades.join(", ")
end end
upgradeable.reject! { |f| FormulaInstaller.installed.include?(f) }
return if upgradeable.blank? return if upgradeable.blank?
unless dry_run unless dry_run