From 1ac68ebc534f436e63983bef0f51931c43b4348c Mon Sep 17 00:00:00 2001 From: RISCi_ATOM Date: Thu, 30 Mar 2023 12:38:24 -0400 Subject: [PATCH] mirrors: Add Debian source mirrors --- include/download.mk | 2 +- scripts/download.pl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/download.mk b/include/download.mk index c9ef95e0bf..66453dca75 100644 --- a/include/download.mk +++ b/include/download.mk @@ -28,7 +28,7 @@ define dl_method $(strip \ $(if $(filter git,$(2)),$(call dl_method_git,$(1),$(2)), $(if $(2),$(2), \ - $(if $(filter @APACHE/% @GITHUB/% @GNOME/% @GNU/% @KERNEL_LIBRE/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \ + $(if $(filter @APACHE/% @DEBIAN/% @GITHUB/% @GNOME/% @GNU/% @KERNEL_LIBRE/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \ $(if $(filter git://%,$(1)),$(call dl_method_git,$(1),$(2)), \ $(if $(filter svn://%,$(1)),svn, \ $(if $(filter cvs://%,$(1)),cvs, \ diff --git a/scripts/download.pl b/scripts/download.pl index 99b26990db..4110c41152 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -203,6 +203,10 @@ foreach my $mirror (@ARGV) { push @mirrors, "http://ftp.jaist.ac.jp/pub/apache/$1"; push @mirrors, "ftp://apache.cs.utah.edu/apache.org/$1"; push @mirrors, "ftp://apache.mirrors.ovh.net/ftp.apache.org/dist/$1"; + } elsif ($mirror =~ /^\@DEBIAN\/(.+)$/) { + push @mirrors, "https://ftp.debian.org/debian/$1"; + push @mirrors, "https://mirror.leaseweb.com/debian/$1"; + push @mirrors, "https://mirror.netcologne.de/debian/$1"; } elsif ($mirror =~ /^\@GITHUB\/(.+)$/) { # give github a few more tries (different mirrors) for (1 .. 5) { -- 2.25.1