Skip to content
Snippets Groups Projects
Unverified Commit 1c8022ef authored by Sam Ford's avatar Sam Ford
Browse files

Pypi: Update page_url to avoid redirection

parent 0ab449c5
No related branches found
No related tags found
No related merge requests found
......@@ -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 ||=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment