cmd/desc: fix handling of --eval-all with formulae

This was caused by some refactoring of `Formula.all` a few months ago.

In this case, `eval-all` was not propagated to the Formula.all command
which caused a few different description related commands not to work.

Broken commands:
- `brew search --desc --eval-all TERM`
- `brew desc --search --eval-all TERM`
- `brew desc --descriptions --eval-all TERM`
This commit is contained in:
apainintheneck 2023-11-07 20:35:51 -08:00
parent 3baec056e7
commit 9a90c0fdfa

View File

@ -34,7 +34,7 @@ class DescriptionCacheStore < CacheStore
return unless eval_all
return unless database.empty?
Formula.all.each { |f| update!(f.full_name, f.desc) }
Formula.all(eval_all: eval_all).each { |f| update!(f.full_name, f.desc) }
end
# Use an update report to update the {DescriptionCacheStore}.