Fixed issue with info[:meta] for resources

This commit is contained in:
Mohammad Zain Abbas 2022-08-01 23:50:18 +02:00
parent 6daa22bc8e
commit e718318eaf

View File

@ -381,7 +381,7 @@ module Homebrew
info = {}
info[:resource] = resource[:name]
info[:livecheckable] = resource[:livecheckable]
info[:meta] = { livecheckable: resource[:livecheckable], }
info[:version] = {
current: current_str,
latest: latest_str,
@ -508,7 +508,7 @@ module Homebrew
package_or_resource_s += "#{Tty.blue}#{info[:formula] || info[:cask] || info[:resource]}#{Tty.reset}"
package_or_resource_s += " (cask)" if ambiguous_cask && !check_resource
package_or_resource_s += " (guessed)" if !info[:meta][:livecheckable] && !check_resource && verbose
package_or_resource_s += " (livecheckable)" if check_resource && info[:livecheckable] && verbose
package_or_resource_s += " (livecheckable)" if check_resource && info[:meta][:livecheckable] && verbose
current_s = if info[:version][:newer_than_upstream]
"#{Tty.red}#{info[:version][:current]}#{Tty.reset}"