diff --git a/Library/Homebrew/livecheck/strategy.rb b/Library/Homebrew/livecheck/strategy.rb index a340b53446..ede94b9708 100644 --- a/Library/Homebrew/livecheck/strategy.rb +++ b/Library/Homebrew/livecheck/strategy.rb @@ -63,7 +63,7 @@ module Homebrew # Only treat the `PageMatch` strategy as usable if a regex is # present in the `livecheck` block next unless regex_provided || block_provided - elsif strategy == Sparkle && (livecheck_strategy || !url_provided) + elsif strategy == Sparkle && (from_symbol(livecheck_strategy) != Sparkle || !url_provided) # Skip the `Sparkle` strategy if a strategy is specified explicitly # or if the URL is not specified explicitly. next