Don't skip Sparkle strategy if explicitly specified.

This commit is contained in:
Markus Reiter 2020-12-14 05:04:50 +01:00 committed by Sam Ford
parent a8d893f134
commit 347a58f164
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -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