> 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. 

Reply via email to