summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-23 15:54:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-23 15:54:24 +0000
commitab25ce721b7bf62841c6d9c1ded8a762fb717784 (patch)
treeacb3d6303153823b69308219646ba8c5b65214c4 /urpm/download.pm
parent0ff68bc2ce17ed97d22575c250c1d569638c1801 (diff)
downloadurpmi-ab25ce721b7bf62841c6d9c1ded8a762fb717784.tar
urpmi-ab25ce721b7bf62841c6d9c1ded8a762fb717784.tar.gz
urpmi-ab25ce721b7bf62841c6d9c1ded8a762fb717784.tar.bz2
urpmi-ab25ce721b7bf62841c6d9c1ded8a762fb717784.tar.xz
urpmi-ab25ce721b7bf62841c6d9c1ded8a762fb717784.zip
- use "versioned" media_info files
(needed for aria2 to handle mirrors not having some media_info/*) it fixes: - downloading parts of media_info file from different mirrors and failing to obtain a valid result - checking md5sum of media_info files
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 8ae9e7f4..d4344d2f 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -661,7 +661,7 @@ sub sync_aria2 {
'--lowest-speed-limit=20K', "--timeout", 3, # $CONNECT_TIMEOUT,
'--metalink-servers=3', # maximum number of servers to use for one download
'--uri-selector=adaptive', "--server-stat-if=$stat_file", "--server-stat-of=$stat_file",
- '--max-file-not-found=3', # number of not found errors on different servers before aborting file download
+ $options->{is_versioned} ? () : '--max-file-not-found=3', # number of not found errors on different servers before aborting file download
'--connect-timeout=3',
"-Z", "-j1",
($options->{'limit-rate'} ? "--max-download-limit=" . $options->{'limit-rate'} : ()),