Skip to content
Snippets Groups Projects
Unverified Commit e8c241f5 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

upgrade: fix handling broken dependents.

Ensure that we use the keg for checking linkage but that the dependents
returned are still formulae.

Fixes #6715.
parent e2c76cce
No related branches found
No related tags found
No related merge requests found
......@@ -267,12 +267,13 @@ module Homebrew
oh1 "Checking for dependents' broken linkage from upgraded formulae..."
broken_dependents = CacheStoreDatabase.use(:linkage) do |db|
formulae_to_install.flat_map(&:runtime_installed_formula_dependents)
.map(&:opt_or_installed_prefix_keg)
.compact
.select do |keg|
.select do |f|
keg = f.opt_or_installed_prefix_keg
next unless keg
LinkageChecker.new(keg, cache_db: db)
.broken_library_linkage?
end
end.compact
end
if broken_dependents.blank?
ohai "No broken dependents found!"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment