From 97d6e91a63b23d2a8029385932603f0bff8aae0d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 4 Sep 2008 09:45:32 +0000 Subject: - remove rsync mirrors when calling aria2 --- urpm/download.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'urpm') diff --git a/urpm/download.pm b/urpm/download.pm index 1d254bc4..108e829c 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -914,7 +914,11 @@ sub _create_metalink_ { # only use the 8 best mirrors, then we let aria2 choose require urpm::mirrors; - my @mirrors = map { _take_n_elem(8, @$_) } urpm::mirrors::list_urls($urpm, $medium, ''); + my @mirrors = map { + # aria2 doesn't handle rsync + my @l = grep { urpm::protocol_from_url($_->{url}) ne 'rsync' } @$_; + _take_n_elem(16, @l); + } urpm::mirrors::list_urls($urpm, $medium, ''); my $metalinkfile = "$urpm->{cachedir}/$options->{media}.metalink"; # Even if not required by metalink spec, this line is needed at top of -- cgit v1.2.1