define dl_method
$(strip \
$(if $(2),$(2), \
- $(if $(filter @GNOME/% @GNU/% @KERNEL/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \
+ $(if $(filter @SF/% @GNOME/% @GNU/% @KERNEL/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \
$(if $(filter git://%,$(1)),git, \
$(if $(filter svn://%,$(1)),svn, \
$(if $(filter cvs://%,$(1)),cvs, \
@mirrors = localmirrors();
foreach my $mirror (@ARGV) {
- if ($mirror =~ /^\@GNU\/(.+)$/) {
+ if ($mirror =~ /^\@SF\/(.+)$/) {
+ # give sourceforge a few more tries, because it redirects to different mirrors
+ push @mirrors, "http://downloads.librecmc.org/sources/$1";
+ } elsif ($mirror =~ /^\@GNU\/(.+)$/) {
push @mirrors, "http://ftpmirror.gnu.org/$1";
push @mirrors, "http://ftp.gnu.org/pub/gnu/$1";
push @mirrors, "ftp://ftp.belnet.be/mirror/ftp.gnu.org/gnu/$1";
}
}
-push @mirrors, 'http://downloads.librecmc.org/sources/v1.3';
+push @mirrors, 'http://downloads.librecmc.org/sources/v1.3.1';
while (!$ok) {
my $mirror = shift @mirrors;