Fix caching in Formula#runtime_installed_formula_dependents
This commit is contained in:
parent
8f54e57422
commit
2459aee5ae
@ -2003,7 +2003,7 @@ class Formula
|
|||||||
# `any_installed_keg` and `runtime_dependencies` `select`s ensure
|
# `any_installed_keg` and `runtime_dependencies` `select`s ensure
|
||||||
# that we don't end up with something `Formula#runtime_dependencies` can't
|
# that we don't end up with something `Formula#runtime_dependencies` can't
|
||||||
# read from a `Tab`.
|
# read from a `Tab`.
|
||||||
Formula.cache[:runtime_installed_formula_dependents] = {}
|
Formula.cache[:runtime_installed_formula_dependents] ||= {}
|
||||||
Formula.cache[:runtime_installed_formula_dependents][full_name] ||= Formula.installed
|
Formula.cache[:runtime_installed_formula_dependents][full_name] ||= Formula.installed
|
||||||
.select(&:any_installed_keg)
|
.select(&:any_installed_keg)
|
||||||
.select(&:runtime_dependencies)
|
.select(&:runtime_dependencies)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user