Possible to implement resumable port fetch?
Ryan Carsten Schmidt
ryandesign at macports.org
Mon Mar 24 19:38:23 UTC 2025
> On Mar 24, 2025, at 12:48, Sergey Fedorov wrote:
>
>
> Is it something trivially doable or is it gonna require some rewrites?
I haven't looked at the code. But enabling the option to continue where it left off should be just a few lines of code, possibly in multiple places (once for distfiles, once for archives).
https://curl.se/libcurl/c/CURLOPT_RESUME_FROM.html
If MacPorts deletes the incomplete file, then that would have to be changed to keep the file. If MacPorts uses the final filename when downloading, it would probably need to change to using a temporary filename and renaming it to the final name when it's done.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20250324/62460dee/attachment.htm>
More information about the macports-dev
mailing list