upgrade: skip dependent check on core versioned formulae

This commit is contained in:
Bo Anderson 2021-11-26 13:05:50 +00:00
parent 6b893a7563
commit d47344b1e8
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -251,7 +251,8 @@ module Homebrew
) )
return if Homebrew::EnvConfig.no_installed_dependents_check? return if Homebrew::EnvConfig.no_installed_dependents_check?
installed_formulae = dry_run ? formulae : FormulaInstaller.installed.to_a installed_formulae = (dry_run ? formulae : FormulaInstaller.installed.to_a).dup
installed_formulae.reject! { |f| f.core_formula? && f.versioned_formula? }
return if installed_formulae.empty? return if installed_formulae.empty?
already_broken_dependents = check_broken_dependents(installed_formulae) already_broken_dependents = check_broken_dependents(installed_formulae)