fetch phase: sourceforge with 302 redirects?

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


Yes, using the `curl -IL` command to obtain the part of the path I need to
extract (which is very slightly different from the web browser URL), did
the trick. Thanks! :)

-- 
Jason Liu


On Thu, Dec 16, 2021 at 4:29 PM Daniel J. Luke <dluke at geeklair.net> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20211216/f569c08f/attachment.htm>


More information about the macports-dev mailing list