wrong array of formulae in compute sized

This commit is contained in:
thibhero 2025-02-25 14:28:44 -05:00
parent 63f94708b0
commit 7b3e469650
2 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ module Homebrew
if args.ask? if args.ask?
ohai "Looking for bottles..." ohai "Looking for bottles..."
sized_formulae = Install.compute_sized_formulae(formulae, args: args) sized_formulae = Install.compute_sized_formulae(formulae_to_install, args: args)
sizes = Install.compute_total_sizes(sized_formulae, debug: args.debug?) sizes = Install.compute_total_sizes(sized_formulae, debug: args.debug?)
puts "Formulae: #{sized_formulae.join(", ")}\n\n" puts "Formulae: #{sized_formulae.join(", ")}\n\n"

View File

@ -368,7 +368,7 @@ module Homebrew
# Add any installed formula that depends on one of the sized formulae and is outdated. # Add any installed formula that depends on one of the sized formulae and is outdated.
unless Homebrew::EnvConfig.no_installed_dependents_check? unless Homebrew::EnvConfig.no_installed_dependents_check?
sized_formulae.concat(Formula.installed.select do |installed_formula| sized_formulae.concat(Formula.installed.select do |installed_formula|
installed_formula.outdated? && installed_formula.bottled? && installed_formula.outdated? &&
installed_formula.deps.required.any? { |dep| sized_formulae.include?(dep.to_formula) } installed_formula.deps.required.any? { |dep| sized_formulae.include?(dep.to_formula) }
end) end)
end end