diff options
| author | Sahil Dhiman | 2024-05-25 09:57:12 +0000 |
|---|---|---|
| committer | Robert Marko | 2024-05-29 09:19:08 +0000 |
| commit | 6510eb3b5d612ea7a70c4a8d9b83639e3b46e221 (patch) | |
| tree | d2dc29157dd20690f52dfab471f67bcae4bfeba6 | |
| parent | 6f2244735f8b09ec8a5e3ca4c5936084c1163022 (diff) | |
| download | openwrt-6510eb3b5d612ea7a70c4a8d9b83639e3b46e221.tar.gz | |
scripts: Add GNU ftp mirror redirector for GNU and Savannah
Add GNU's redirector which automatically redirect user to nearby online
mirror.
Signed-off-by: Sahil Dhiman <sahil@hopbox.in>
Link: https://github.com/openwrt/openwrt/pull/15557
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rwxr-xr-x | scripts/download.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/download.pl b/scripts/download.pl index c14ec07e44..3c57bcff22 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -272,6 +272,7 @@ foreach my $mirror (@ARGV) { push @mirrors, "https://raw.githubusercontent.com/$1"; } } elsif ($mirror =~ /^\@GNU\/(.+)$/) { + push @mirrors, "https://ftpmirror.gnu.org/$1"; push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnu/$1"; push @mirrors, "https://mirror.netcologne.de/gnu/$1"; push @mirrors, "https://ftp.kddilabs.jp/GNU/gnu/$1"; @@ -282,6 +283,7 @@ foreach my $mirror (@ARGV) { push @mirrors, "https://mirrors.tuna.tsinghua.edu.cn/gnu/$1"; push @mirrors, "https://mirrors.ustc.edu.cn/gnu/$1"; } elsif ($mirror =~ /^\@SAVANNAH\/(.+)$/) { + push @mirrors, "https://download.savannah.nongnu.org/releases/$1"; push @mirrors, "https://mirror.netcologne.de/savannah/$1"; push @mirrors, "https://mirror.csclub.uwaterloo.ca/nongnu/$1"; push @mirrors, "https://ftp.acc.umu.se/mirror/gnu.org/savannah/$1"; |