Merge pull request #19451 from Homebrew/resource-livecheck-parent-fix
livecheck: fix parent reference handling
This commit is contained in:
commit
f378504f95
@ -895,9 +895,9 @@ module Homebrew
|
||||
block_provided: livecheck_strategy_block.present?,
|
||||
)
|
||||
strategy = Strategy.from_symbol(livecheck_strategy) || strategies.first
|
||||
next unless strategy
|
||||
next if strategy.blank? && livecheck_reference != :parent
|
||||
|
||||
strategy_name = livecheck_strategy_names(strategy)
|
||||
strategy_name = livecheck_strategy_names(strategy) if strategy.present?
|
||||
|
||||
if strategy.respond_to?(:preprocess_url)
|
||||
url = strategy.preprocess_url(url)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user