From b4bcd4a419be54110f505c197c2290fdffa3b826 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Fri, 27 Nov 2020 18:01:17 +0800 Subject: [PATCH] local-mirrors.conf: add mirror for sourceforge and re-tries for wget The downloads.sourceforge.net is unstable sometimes so the do_fetch may fail for some packages, do the following to avoid that: - add two mirror url so it will try to download from mirror url when downloads.sourceforge.net is unavailable. - re-define the FETCHCMD_wget to add more re-tries (2 -> 5) and longer timeout (30 -> 60). Issue-ID: INF-211 Signed-off-by: Jackie Huang Change-Id: Ic6c9868fc1f2c470fe53a76e54a022dfc41c4589 --- scripts/configs/local-mirrors.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/configs/local-mirrors.conf b/scripts/configs/local-mirrors.conf index 16202e7..b54586b 100644 --- a/scripts/configs/local-mirrors.conf +++ b/scripts/configs/local-mirrors.conf @@ -6,4 +6,10 @@ MIRRORS += "\ ${GNOME_MIRROR} http://ftp.cse.buffalo.edu/pub/Gnome/sources \n \ git://salsa.debian.org/.* git://salsa.debian.org/PATH;protocol=https \n \ git://salsa.debian.org/.* git://salsa.debian.org/PATH;protocol=http \n \ + ${SOURCEFORGE_MIRROR} https://iweb.dl.sourceforge.net \n \ + ${SOURCEFORGE_MIRROR} https://pilotfiber.dl.sourceforge.net \n \ " + +# Add more re-tries and timeout for wget +# The original definition in bitbake.conf is: -t 2 -T 30 +FETCHCMD_wget="/usr/bin/env wget -t 5 -T 60 --waitretry=5 --passive-ftp --no-check-certificate" -- 2.16.6