Skip Sparkle strategy only if URL is not specified explicitly.

This commit is contained in:
Markus Reiter 2020-12-18 20:07:40 +01:00 committed by Sam Ford
parent 71104a27ef
commit c306577575
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

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