[LEDE-DEV] [PATCH v2] scripts/download.pl: Use CDN for kernel downloads
Petr Štetiar
ynezz at true.cz
Mon May 23 03:55:01 PDT 2016
More info at https://www.kernel.org/introducing-fastly-cdn.html
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
Changes since v1:
* use CDN first then use directly regular www.kernel.org
* remove FTP mirror, it's same host as www so likely to fail also
scripts/download.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/download.pl b/scripts/download.pl
index 548eb7a..c31d9bd 100755
--- a/scripts/download.pl
+++ b/scripts/download.pl
@@ -207,8 +207,8 @@ foreach my $mirror (@ARGV) {
push @extra, "$extra[0]/longterm/v$1";
}
foreach my $dir (@extra) {
- push @mirrors, "https://kernel.org/pub/$dir";
- push @mirrors, "ftp://kernel.org/pub/$dir";
+ push @mirrors, "https://cdn.kernel.org/pub/$dir";
+ push @mirrors, "https://www.kernel.org/pub/$dir";
}
} elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
push @mirrors, "http://ftp.gnome.org/pub/GNOME/sources/$1";
--
1.9.1
More information about the Lede-dev
mailing list