0092-scripts-download.pl-Use-CDN-for-kernel-downloads.patch 971 B

12345678910111213141516171819202122232425
  1. From: Petr Štetiar <ynezz@true.cz>
  2. Date: Mon, 23 May 2016 12:55:01 +0200
  3. Subject: scripts/download.pl: Use CDN for kernel downloads
  4. More info at https://www.kernel.org/introducing-fastly-cdn.html
  5. Signed-off-by: Petr Štetiar <ynezz@true.cz>
  6. Backport of LEDE e0b241bb489b82b42338a7469f5b5bd387f4c100
  7. diff --git a/scripts/download.pl b/scripts/download.pl
  8. index 111d03c63320d0c4f7b19902a4a5e23acb3b8a4d..ea4e2c4887b530236a9a56053105053e48a9c7b5 100755
  9. --- a/scripts/download.pl
  10. +++ b/scripts/download.pl
  11. @@ -177,8 +177,8 @@ foreach my $mirror (@ARGV) {
  12. push @extra, "$extra[0]/longterm/v$1";
  13. }
  14. foreach my $dir (@extra) {
  15. - push @mirrors, "ftp://ftp.all.kernel.org/pub/$dir";
  16. - push @mirrors, "http://ftp.all.kernel.org/pub/$dir";
  17. + push @mirrors, "https://cdn.kernel.org/pub/$dir";
  18. + push @mirrors, "https://www.kernel.org/pub/$dir";
  19. }
  20. } elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
  21. push @mirrors, "http://ftp.gnome.org/pub/GNOME/sources/$1";