Merge pull request #8998 from muneebmahmed/dependent-check

Refresh installed list before dependency check
This commit is contained in:
Mike McQuaid 2020-10-27 11:52:55 +00:00 committed by GitHub
commit 8f5988f21d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)