aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/download.pl
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2020-04-06 01:53:19 -1000
committerDaniel Golle <daniel@makrotopia.org>2020-04-14 23:16:55 +0100
commitc737a9ee6a9c47b6e553ac81bf293b1161e59799 (patch)
tree4b757d982224db06f271c12227eff9f3fafad896 /scripts/download.pl
parent14cbd8fb2dd8c81bad06d3c3bb45213685c19c98 (diff)
downloadupstream-c737a9ee6a9c47b6e553ac81bf293b1161e59799.tar.gz
upstream-c737a9ee6a9c47b6e553ac81bf293b1161e59799.tar.bz2
upstream-c737a9ee6a9c47b6e553ac81bf293b1161e59799.zip
scripts/download: add sources CDN as first mirror
OpenWrt now has a CDN for sources at sources.cdn.openwrt.org which mirrors sources.openwrt.org. Downloading sources outside Europe or US (mainland) could result in low throughput, extremely slowing down the first compilation of the build system. This patch adds sources.cdn.openwrt.org as the first mirror to offer worldwide fast download speeds by default. If the CDN goes down for whatever reason, the script jumps to the next available mirror and downloads requested files as before (in regional varying speed). Signed-off-by: Paul Spooren <mail@aparcar.org> Acked-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Diffstat (limited to 'scripts/download.pl')
-rwxr-xr-xscripts/download.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/download.pl b/scripts/download.pl
index dd49255367..1d3ff02c5b 100755
--- a/scripts/download.pl
+++ b/scripts/download.pl
@@ -258,6 +258,7 @@ foreach my $mirror (@ARGV) {
}
}
+unshift @mirrors, 'https://sources.cdn.openwrt.org';
#push @mirrors, 'https://mirror1.openwrt.org';
push @mirrors, 'https://sources.openwrt.org';
push @mirrors, 'https://mirror2.openwrt.org/sources';