Merge pull request #564 from wigyori/cc-cdn2

CC: add download facilities
This commit is contained in:
Zoltan Herpai
2017-10-22 22:09:54 +02:00
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@@ -158,6 +158,17 @@ foreach my $mirror (@ARGV) {
for (1 .. 5) {
push @mirrors, "http://downloads.sourceforge.net/$1";
}
} elsif ($mirror =~ /^\@APACHE\/(.+)$/) {
push @mirrors, "http://ftp.tudelft.nl/apache/$1";
push @mirrors, "http://apache.openmirror.de/$1";
push @mirrors, "http://mirrors.ocf.berkeley.edu/apache/$1";
push @mirrors, "http://mirror.cc.columbia.edu/pub/software/apache/$1";
push @mirrors, "http://ftp.jaist.ac.jp/pub/apache/$1";
} elsif ($mirror =~ /^\@GITHUB\/(.+)$/) {
# give github a few more tries (different mirrors)
for (1 .. 5) {
push @mirrors, "https://raw.githubusercontent.com/$1";
}
} elsif ($mirror =~ /^\@GNU\/(.+)$/) {
push @mirrors, "http://ftpmirror.gnu.org/$1";
push @mirrors, "http://ftp.gnu.org/pub/gnu/$1";