fetch phase: sourceforge with 302 redirects?

Jason Liu jasonliu at umich.edu
Thu Dec 16 21:24:28 UTC 2021


Hi everyone,

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.

-- 
Jason Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20211216/71e60cab/attachment.htm>


More information about the macports-dev mailing list