Pypi: Update page_url to avoid redirection

This commit is contained in:
Sam Ford 2020-12-13 16:21:37 -05:00
parent 0ab449c577
commit 1c8022ef48
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -48,7 +48,7 @@ module Homebrew
# It's not technically necessary to have the `#files` fragment at the
# end of the URL but it makes the debug output a bit more useful.
page_url = "https://pypi.org/project/#{package_name.gsub(/%20|_/, "-")}#files"
page_url = "https://pypi.org/project/#{package_name.gsub(/%20|_/, "-")}/#files"
# Example regex: `%r{href=.*?/packages.*?/example[._-]v?(\d+(?:\.\d+)*).t}i`.
regex ||=