utils/repology: update API URL

This commit is contained in:
Eric Knibbe 2023-08-02 09:02:44 -04:00
parent d2863d05b3
commit c1fe80ac82
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168

View File

@ -29,8 +29,7 @@ module Repology
end
def self.single_package_query(name, repository:)
url = "https://repology.org/tools/project-by?repo=#{repository}&" \
"name_type=srcname&target_page=api_v1_project&name=#{name}"
url = "https://repology.org/api/v1/project/#{name}"
output, errors, = curl_output("--location", "--silent", url.to_s, use_homebrew_curl: !curl_supports_tls13?)