Commit 72624577 authored by Vitaly Lipatov's avatar Vitaly Lipatov

eget: use --parallel for curl parallel downloads

parent b35824d5
...@@ -1332,10 +1332,13 @@ url_sget() ...@@ -1332,10 +1332,13 @@ url_sget()
url_pget() url_pget()
{ {
#[ -n "$USEOUTPUTDIR" ] || fatal "USEOUTPUTDIR is not set" #[ -n "$USEOUTPUTDIR" ] || fatal "USEOUTPUTDIR is not set"
# curl needs -O before each URL for parallel downloads
local args=""
local URL local URL
for URL in "$@" ; do for URL in "$@" ; do
download_with_mirroring __curl $CURLFILENAMEOPTIONS "$URL" args="$args $CURLFILENAMEOPTIONS $URL"
done done
__curl --parallel $args
} }
# Download file with mirror fallback (try each URL until success) # Download file with mirror fallback (try each URL until success)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment