Refresh installed list before dependency check

This commit is contained in:
Muneeb Ahmed 2020-10-26 19:29:55 -07:00
parent c8fcd050c7
commit 4322b44d4c

View File

@ -186,6 +186,9 @@ module Homebrew
upgrade_formulae(upgradeable_dependents, args: args)
# Refresh installed formulae after upgrading
installed_formulae = FormulaInstaller.installed.to_a
# Assess the dependents tree again now we've upgraded.
oh1 "Checking for dependents of upgraded formulae..." unless args.dry_run?
broken_dependents = check_broken_dependents(installed_formulae)