Commit c9e95e69 authored by Alessandro Rubini's avatar Alessandro Rubini

build/download: make wget timeout sooner and avoid retrying

The upstream address for lsof is not working. While the download script
tries buildroot.net if upstream fails, getting lsof got stuck for
no connection to the server.

With this commit it times out after 15 seconds to then proceed using
the buildroot address. I expect the problem to affect other upstream
files over time, so the commit doesn't fix the link but the tool.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 1059c398
......@@ -143,7 +143,7 @@ wrs_download () {
fi
# Download from upstream
wget -q $upstream -O $output
wget -T 15 -t 1 -q $upstream -O $output
ourmd5=$(cat $output | md5sum | sed 's/ .*$//')
if [ -s $output -a "$ourmd5" = "$md5" ]; then
wrs_echo "Retrieved $file from upstream"
......
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