Bug 7781 - Urpmi using deprecated aria option metalink-servers
Summary: Urpmi using deprecated aria option metalink-servers
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-13 04:26 CEST by Sam Bailey
Modified: 2012-10-15 17:15 CEST (History)
1 user (show)

See Also:
Source RPM: urpmi
CVE:
Status comment:


Attachments

Description Sam Bailey 2012-10-13 04:26:33 CEST
Running urpmi --debug with aria set up to be used shows that urpmi is using a deprecated aria option for splitting connections:

urpmi.update -a --debug
Error:
aria2c: 2012-10-13 13:24:47.278615 WARN - --metalink-servers option is deprecated. Use --split option instead.

Affects Cauldron and Mageia 2.
Comment 1 Sam Bailey 2012-10-13 04:29:12 CEST
Can be resolved by patching the urpm/download.pm file in the urpmi rpm.

svn r5757:
Change line 709 from:
'--metalink-servers=3', # maximum number of servers to use for one download
to:
'--split=3', # maximum number of servers to use for one download

Another option is to remove this line altogether as according to aria2c --help split defaults to 5.

 -s, --split=N                Download a file using N connections. If more
                              than N URLs are given, first N URLs are used and
                              remaining URLs are used for backup. If less than
                              N URLs are given, those URLs are used more than
                              once so that N connections total are made
                              simultaneously. The number of connections to the
                              same host is restricted by
                              --max-connection-per-server option. See also
                              --min-split-size option.

                              Possible Values: 1-*
                              Default: 5
                              Tags: #basic, #ftp, #http
Sam Bailey 2012-10-13 04:29:28 CEST

Source RPM: (none) => urpmi

Comment 2 Thierry Vignaud 2012-10-15 17:15:44 CEST
Fixed in SVN

Status: NEW => RESOLVED
CC: (none) => thierry.vignaud
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.