new line to make it easier to understand

This commit is contained in:
thibhero 2025-06-20 12:36:22 -04:00
parent 6d0a77fc79
commit a16129fc59

View File

@ -69,7 +69,8 @@ module Homebrew
) )
fi.fetch_bottle_tab(quiet: !debug) fi.fetch_bottle_tab(quiet: !debug)
if !dry_run && dependents && fi.bottle_tab_runtime_dependencies.presence&.all? do |dependency, hash| if !dry_run && dependents
fi.bottle_tab_runtime_dependencies.presence&.all? do |dependency, hash|
minimum_version = Version.new(hash["version"]) if hash["version"].present? minimum_version = Version.new(hash["version"]) if hash["version"].present?
Dependency.new(dependency).installed?(minimum_version:, minimum_revision: hash["revision"]) Dependency.new(dependency).installed?(minimum_version:, minimum_revision: hash["revision"])
end end
@ -296,8 +297,8 @@ module Homebrew
# TODO: this should be refactored to use FormulaInstaller new logic # TODO: this should be refactored to use FormulaInstaller new logic
outdated_dependents = outdated_dependents =
formulae_to_install.flat_map(&:runtime_installed_formula_dependents) formulae_to_install.flat_map(&:runtime_installed_formula_dependents)
.uniq .uniq
.select(&:outdated?) .select(&:outdated?)
# Ensure we never attempt a source build for outdated dependents of upgraded formulae. # Ensure we never attempt a source build for outdated dependents of upgraded formulae.
outdated_dependents, skipped_dependents = outdated_dependents.partition do |dependent| outdated_dependents, skipped_dependents = outdated_dependents.partition do |dependent|