From 7ce15eaa60dd5552c15f851252507cbce6a8d528 Mon Sep 17 00:00:00 2001 From: Mohammad Zain Abbas Date: Mon, 25 Jul 2022 00:56:36 +0200 Subject: [PATCH] Basic debug info --- Library/Homebrew/livecheck/livecheck.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/livecheck/livecheck.rb b/Library/Homebrew/livecheck/livecheck.rb index 88ce4a2979..5ac3258ef0 100644 --- a/Library/Homebrew/livecheck/livecheck.rb +++ b/Library/Homebrew/livecheck/livecheck.rb @@ -353,7 +353,13 @@ module Homebrew next info end - print_latest_version(info, verbose: verbose, ambiguous_cask: ambiguous_casks.include?(formula_or_cask)) + if resources_only + #@todo: modify print_latest_version for resources + onoe "#{Tty.blue}Debug info for resources is in progress!#{Tty.reset}" + else + print_latest_version(info, verbose: verbose, ambiguous_cask: ambiguous_casks.include?(formula_or_cask)) + end + nil rescue => e Homebrew.failed = true @@ -489,7 +495,7 @@ module Homebrew when :head, :stable # Not sure how to handle this ? # Do I have to add :stable / :head in Resources' as well (like it's being implemented in Formula ?) - package_or_resource.send(livecheck_url)&.url if package_or_resource.is_a?(Formula) + package_or_resource.send(livecheck_url)&.url if package_or_resource.is_a?(Formula) || package_or_resource.is_a?(Resource) when :homepage package_or_resource.homepage end