From e718318eaf094fcd3c80b1b2863dc9d11b9d5950 Mon Sep 17 00:00:00 2001 From: Mohammad Zain Abbas Date: Mon, 1 Aug 2022 23:50:18 +0200 Subject: [PATCH] Fixed issue with info[:meta] for resources --- Library/Homebrew/livecheck/livecheck.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/livecheck/livecheck.rb b/Library/Homebrew/livecheck/livecheck.rb index bf66457896..26e5b75844 100644 --- a/Library/Homebrew/livecheck/livecheck.rb +++ b/Library/Homebrew/livecheck/livecheck.rb @@ -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}"