Bug 7781

Summary: Urpmi using deprecated aria option metalink-servers
Product: Mageia Reporter: Sam Bailey <cyprix>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: urpmi CVE:
Status comment:

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