After running brew style --fix
This commit is contained in:
parent
3d83e18142
commit
53b0d60f75
@ -353,7 +353,8 @@ module Homebrew
|
||||
next info
|
||||
end
|
||||
puts if debug
|
||||
print_latest_version(info, verbose: verbose, ambiguous_cask: ambiguous_casks.include?(formula_or_cask), resource: false)
|
||||
print_latest_version(info, verbose: verbose, ambiguous_cask: ambiguous_casks.include?(formula_or_cask),
|
||||
resource: false)
|
||||
|
||||
if check_for_resources
|
||||
resource_version_info.each do |r_info|
|
||||
@ -758,7 +759,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
res_current = resource.version
|
||||
res_latest = Version.new(match_version_map.values.max_by do |v| LivecheckVersion.create(resource, v) end)
|
||||
res_latest = Version.new(match_version_map.values.max_by { |v| LivecheckVersion.create(resource, v) })
|
||||
is_newer_than_upstream = res_current > res_latest
|
||||
is_outdated = (res_current != res_latest) && !is_newer_than_upstream
|
||||
|
||||
@ -772,21 +773,20 @@ module Homebrew
|
||||
},
|
||||
}
|
||||
|
||||
if json && verbose
|
||||
next unless json
|
||||
next unless verbose
|
||||
|
||||
resource_version_info[:meta] = { url: { original: original_url } }
|
||||
resource_version_info[:meta][:url][:processed] = url if url != original_url
|
||||
resource_version_info[:meta][:livecheckable] = has_livecheckable ? "Yes" : "No"
|
||||
if has_livecheckable
|
||||
next unless has_livecheckable
|
||||
|
||||
res_livecheck = { url: { original: livecheck_url } }
|
||||
if livecheck_url.is_a?(Symbol) && livecheck_url_string
|
||||
res_livecheck[:url][:symbol] = livecheck_url
|
||||
end
|
||||
res_livecheck[:url][:symbol] = livecheck_url if livecheck_url.is_a?(Symbol) && livecheck_url_string
|
||||
if strategy_data[:url].present? && strategy_data[:url] != url
|
||||
res_livecheck[:url][:strategy] = strategy_data[:url]
|
||||
end
|
||||
if strategy_data[:final_url]
|
||||
res_livecheck[:url][:final] = strategy_data[:final_url]
|
||||
end
|
||||
res_livecheck[:url][:final] = strategy_data[:final_url] if strategy_data[:final_url]
|
||||
res_livecheck[:url][:homebrew_curl] = homebrew_curl if homebrew_curl.present?
|
||||
res_livecheck[:strategy] = strategy.present? ? strategy_name : nil
|
||||
if strategies.present?
|
||||
@ -798,8 +798,6 @@ module Homebrew
|
||||
res_livecheck[:cached] = true if strategy_data[:cached] == true
|
||||
resource_version_info[:meta][:livecheck] = res_livecheck
|
||||
end
|
||||
end
|
||||
end
|
||||
resource_version_info
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user