From c306577575e637aaa39837f334b53e00d20c66b6 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 18 Dec 2020 20:07:40 +0100 Subject: [PATCH] Skip Sparkle strategy only if URL is not specified explicitly. --- Library/Homebrew/livecheck/strategy.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/livecheck/strategy.rb b/Library/Homebrew/livecheck/strategy.rb index d82b1e1560..2c986a46fc 100644 --- a/Library/Homebrew/livecheck/strategy.rb +++ b/Library/Homebrew/livecheck/strategy.rb @@ -64,10 +64,8 @@ module Homebrew # present in the `livecheck` block next unless regex_provided || block_provided elsif strategy == Sparkle - # Skip the `Sparkle` strategy if another strategy is specified explicitly - # or if the URL is not specified explicitly. + # Skip the `Sparkle` strategy if the URL is not specified explicitly. next unless url_provided - next if livecheck_strategy && from_symbol(livecheck_strategy) != strategy elsif strategy.const_defined?(:PRIORITY) && !strategy::PRIORITY.positive? && from_symbol(livecheck_strategy) != strategy