Resuming downloads of external files
Chris Sherlock
chris.sherlock79 at gmail.com
Mon Jan 18 14:16:55 PST 2016
Hi all,
I notice we use curl to download things like boost.
Unfortunately for myself, I’m having connectivity issues to the LibreOffice servers. Whenever the download fails, the next time I run make it restarts from the beginning, and of course it fails.
Would it be possible to use the -C (continue) command?
cd /Users/5K/lo/core/external/tarballs/tmp && echo fetching boost_1_59_0.tar.bz2 && bash -c '/usr/bin/curl -C - -O http://dev-www.libreoffice.org/src/boost_1_59_0.tar.bz2 2>&1 | tee -a /Users/5K/lo/core/external/tarballs/fetch.log && [ $PIPESTATUS -eq 0 ]' && SUM=`md5 -r boost_1_59_0.tar.bz2 | sed "s/ .*//"` && if test "$SUM" != "6aa9a5c6a4ca1016edd0ed1178e3cb87"; then echo ERROR: expected checksum for boost_1_59_0.tar.bz2 is 6aa9a5c6a4ca1016edd0ed1178e3cb87 2>&1 | tee -a /Users/5K/lo/core/external/tarballs/fetch.log; false; fi && mv boost_1_59_0.tar.bz2 ../
We’d just have to add in the "-C -“ switches to Curl.
Are there any concerns in making this occur?
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20160119/3818ac49/attachment.html>
More information about the LibreOffice
mailing list