fetch phase: sourceforge with 302 redirects?
Daniel J. Luke
dluke at geeklair.net
Thu Dec 16 21:29:08 UTC 2021
On Dec 16, 2021, at 4:24 PM, Jason Liu <jasonliu at umich.edu> wrote:
> I'm working on a new portfile that has its source stored on sourceforge. MacPorts is having trouble obtaining the tarball, because apparently the mirrors are pointing to the wrong file, and if I put the full URL into `master_sites`, it's unable to find the tarball at all. It seems that sourceforge is using 301 redirects to point to the actual file. If I use the URL with a `curl -L`, the correct file downloads just fine. Is there any way to get MacPorts to follow redirects during the fetch phase? If at all possible, I'd like to avoid manually using curl through a `system` call, but I suppose it could work as a last resort.
Does this sourceforge example help?
https://trac.macports.org/wiki/howto/AvoidRedirects
--
Daniel J. Luke
More information about the macports-dev
mailing list