diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-04 08:04:19 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-04 08:04:19 +0000 |
commit | c9c318f06b6ffcbc37b7ea4b9ad50296dfb43162 (patch) | |
tree | e41e76c347e1331fdd557e878ecadf4291aeaac9 /urpm/download.pm | |
parent | 6ae3df8b164d3e77e30fd2b7dfc4edafab616380 (diff) | |
download | urpmi-c9c318f06b6ffcbc37b7ea4b9ad50296dfb43162.tar urpmi-c9c318f06b6ffcbc37b7ea4b9ad50296dfb43162.tar.gz urpmi-c9c318f06b6ffcbc37b7ea4b9ad50296dfb43162.tar.bz2 urpmi-c9c318f06b6ffcbc37b7ea4b9ad50296dfb43162.tar.xz urpmi-c9c318f06b6ffcbc37b7ea4b9ad50296dfb43162.zip |
cleanup
Diffstat (limited to 'urpm/download.pm')
-rw-r--r-- | urpm/download.pm | 3 |
1 files changed, 1 insertions, 2 deletions
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); |