summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-04 08:04:19 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-04 08:04:19 +0000
commitc9c318f06b6ffcbc37b7ea4b9ad50296dfb43162 (patch)
treee41e76c347e1331fdd557e878ecadf4291aeaac9 /urpm/download.pm
parent6ae3df8b164d3e77e30fd2b7dfc4edafab616380 (diff)
downloadurpmi-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.pm3
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);