checking also the formula itself

This commit is contained in:
thibhero 2025-03-06 22:02:45 -05:00
parent 2edc42e905
commit 483aa26aaa

View File

@ -407,7 +407,7 @@ module Homebrew
def compute_sized_formulae(formulae, args:)
sized_formulae = formulae.flat_map do |formula|
# Always include the formula itself.
formula_list = [formula]
formula_list = formula.installed_kegs.empty? || (formula.bottled? && formula.outdated?) ? [formula] : []
deps = args.build_from_source? ? formula.deps.build : formula.deps.required
# If there are dependencies, try to gather outdated, bottled ones.