summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-14 17:02:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-14 17:02:56 +0000
commit2e77323a8efb1fd7869bb69746d7b1d048ceb58e (patch)
tree8e9a0afebf94506bd6c7c2f6706819fc8f7cbbb0 /urpm/download.pm
parent5b484bff16baf7a86371a2b17864fc3e60e375d8 (diff)
downloadurpmi-2e77323a8efb1fd7869bb69746d7b1d048ceb58e.tar
urpmi-2e77323a8efb1fd7869bb69746d7b1d048ceb58e.tar.gz
urpmi-2e77323a8efb1fd7869bb69746d7b1d048ceb58e.tar.bz2
urpmi-2e77323a8efb1fd7869bb69746d7b1d048ceb58e.tar.xz
urpmi-2e77323a8efb1fd7869bb69746d7b1d048ceb58e.zip
use aria2 even if nearest mirror is rsync
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index e8c5a950..14c0b753 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -905,7 +905,7 @@ sub _sync_webfetch_raw {
my @l = map { urpm::file_from_local_url($_) } @$files;
eval { sync_file($options, @l) };
$urpm->{fatal}(10, $@) if $@;
- } elsif (member($proto, 'ftp', 'http', 'https')) {
+ } elsif (member($proto, 'ftp', 'http', 'https') || $options->{metalink}) {
my $preferred = preferred_downloader($urpm, $medium, \$options->{metalink});