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

ask option refactoring
This commit is contained in:
Carlo Cabrera 2025-07-18 06:28:18 +00:00 committed by GitHub
commit 38d4b1e1d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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