From c9c318f06b6ffcbc37b7ea4b9ad50296dfb43162 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 4 Sep 2008 08:04:19 +0000 Subject: cleanup --- urpm/download.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'urpm') diff --git a/urpm/download.pm b/urpm/download.pm index 53e47467..94d5a447 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -900,8 +900,7 @@ sub _take_n_elem { sub _create_one_metalink_line { my ($medium, $mirror, $rel_file, $counter) = @_; - my $type = $mirror->{url}; - $type =~ s!://.*!!; + my $type = urpm::protocol_from_url($mirror->{url}); # If more than 100 mirrors, give all the remaining mirrors a priority of 0 my $preference = max(0, 100 - $counter); -- cgit v1.2.1