local-mirrors.conf: add mirror for sourceforge and re-tries for wget 79/5179/1
authorJackie Huang <jackie.huang@windriver.com>
Fri, 27 Nov 2020 10:01:17 +0000 (18:01 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Fri, 27 Nov 2020 10:22:53 +0000 (18:22 +0800)
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 <jackie.huang@windriver.com>
Change-Id: Ic6c9868fc1f2c470fe53a76e54a022dfc41c4589

scripts/configs/local-mirrors.conf

index 16202e7..b54586b 100644 (file)
@@ -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"