Merge pull request #20195 from tyuwags/ask-option-refactoring

Ask option refactoring
This commit is contained in:
Carlo Cabrera 2025-07-03 12:28:46 +00:00 committed by GitHub
commit 57024a9f2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View File

@ -470,7 +470,7 @@ module Homebrew
end.flat_map(&:to_formula)]
end.flatten.uniq
formulae_dependencies.concat(dependants.upgradeable) if dependants&.upgradeable
formulae_dependencies
formulae_dependencies.uniq
end
end
end

View File

@ -84,7 +84,7 @@ module Homebrew
keg = install_context.keg
formula = install_context.formula
options = install_context.options
link_keg = keg.linked?
link_keg = keg&.linked?
formula_installer.prelude
formula_installer.fetch

View File

@ -375,6 +375,10 @@ module Homebrew
puts formulae_upgrades.join(", ")
end
upgradeable.reject! { |f| FormulaInstaller.installed.include?(f) }
return if upgradeable.blank?
unless dry_run
dependent_installers = formula_installers(
upgradeable,