Merge pull request #10910 from Bo98/upgrade-dry-run

cmd/upgrade: fix --dry-run
This commit is contained in:
Bo Anderson 2021-03-23 01:22:47 +00:00 committed by GitHub
commit 52c6faf4a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,7 @@ module Homebrew
puts formulae_upgrades.join("\n")
end
unless args.dry_run?
Upgrade.upgrade_formulae(
formulae_to_install,
flags: args.flags_only,
@ -187,6 +188,7 @@ module Homebrew
quiet: args.quiet?,
verbose: args.verbose?,
)
end
Upgrade.check_installed_dependents(
formulae_to_install,