scripts/download.pl: Use CDN for kernel downloads

More info at https://www.kernel.org/introducing-fastly-cdn.html

Signed-off-by: Petr Štetiar <ynezz@true.cz>
owl
Petr Štetiar 2016-05-23 12:55:01 +02:00 committed by Felix Fietkau
parent 4c4497ec0d
commit e0b241bb48
1 changed files with 2 additions and 2 deletions

View File

@ -207,8 +207,8 @@ foreach my $mirror (@ARGV) {
push @extra, "$extra[0]/longterm/v$1"; push @extra, "$extra[0]/longterm/v$1";
} }
foreach my $dir (@extra) { foreach my $dir (@extra) {
push @mirrors, "https://kernel.org/pub/$dir"; push @mirrors, "https://cdn.kernel.org/pub/$dir";
push @mirrors, "ftp://kernel.org/pub/$dir"; push @mirrors, "https://www.kernel.org/pub/$dir";
} }
} elsif ($mirror =~ /^\@GNOME\/(.+)$/) { } elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
push @mirrors, "http://ftp.gnome.org/pub/GNOME/sources/$1"; push @mirrors, "http://ftp.gnome.org/pub/GNOME/sources/$1";