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

Hackage: Update page_url to avoid redirection

parent ced0da15
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ module Homebrew
/^(?<package_name>.+?)-\d+/i =~ File.basename(url)
# A page containing a directory listing of the latest source tarball
page_url = "https://hackage.haskell.org/package/#{package_name}/src"
page_url = "https://hackage.haskell.org/package/#{package_name}/src/"
# Example regex: `%r{<h3>example-(.*?)/?</h3>}i`
regex ||= %r{<h3>#{Regexp.escape(package_name)}-(.*?)/?</h3>}i
......
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