summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-01 16:04:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-01 16:04:56 +0000
commitdcda7d7bfe85823619e1c8c677553911feca092e (patch)
tree320df9f39045a75e1fa446bd1e0d8dca241e36b9
parent8021edb8bab8605b3398a510c268c1378a781524 (diff)
downloadurpmi-dcda7d7bfe85823619e1c8c677553911feca092e.tar
urpmi-dcda7d7bfe85823619e1c8c677553911feca092e.tar.gz
urpmi-dcda7d7bfe85823619e1c8c677553911feca092e.tar.bz2
urpmi-dcda7d7bfe85823619e1c8c677553911feca092e.tar.xz
urpmi-dcda7d7bfe85823619e1c8c677553911feca092e.zip
fix --limit-rate with aria2
-rw-r--r--urpm/download.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index df4f9e7c..2b309c83 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -623,7 +623,7 @@ sub sync_aria2 {
"--follow-metalink=mem",
'--metalink-enable-unique-protocol=true',
"-Z", "-j1",
- ($options->{limit_rate} ? "--max-download-limit=$options->{limit_rate}" : ()),
+ ($options->{'limit-rate'} ? "--max-download-limit=" . $options->{'limit-rate'} : ()),
($options->{resume} ? "--continue" : "--allow-overwrite=true"),
($options->{proxy} ? set_proxy({ type => "aria2", proxy => $options->{proxy} }) : ()),
($options->{retry} ? "--max-tries=$options->{retry}" : "--max-tries=3"),