Exclude :meta info for resources if latest.blank? for Formula

This commit is contained in:
Mohammad Zain Abbas 2022-09-18 17:29:44 +02:00
parent 37eef10b92
commit 980538b8b2

View File

@ -318,7 +318,10 @@ module Homebrew
latest_info = status_hash(formula_or_cask, "error", [no_versions_msg], full_name: use_full_name, latest_info = status_hash(formula_or_cask, "error", [no_versions_msg], full_name: use_full_name,
verbose: verbose) verbose: verbose)
latest_info[:resources] = resource_version_info if check_for_resources if check_for_resources
resource_version_info.map! { |r| r.except!(:meta) } unless verbose
latest_info[:resources] = resource_version_info
end
next latest_info next latest_info
end end