Bug 12378

Summary: urpmi.addmedia: add option to set the default downloader (urpmi.cfg)
Product: Mageia Reporter: Alex Loginov <loginov_alex>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: Normal CC: thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: urpmi-7.30-1.mga4.noarch.rpm CVE:
Status comment:

Description Alex Loginov 2014-01-21 12:40:01 CET
Description of problem: urpmi.addmedia ignored --wget, --curl, --aria2 options


Version-Release number of selected component (if applicable): urpmi-7.30-1.mga4.noarch.rpm


How reproducible: always


Steps to Reproduce:
1. urpmi.addmedia --wget --update Mageia-2-ya-Core-Release-i586 http://mirror.yandex.ru/mageia/distrib/2/i586/media/core/release
2. see in /etc/urpmi/urpmi.cfg
3. there is no
downloader: wget
in /etc/urpmi/urpmi.cfg for Mageia-2-ya-Core-Release-i586
4. curl, aria2 are with the same issue

Reproducible: 

Steps to Reproduce:
David Walser 2014-01-21 16:38:32 CET

CC: (none) => thierry.vignaud

Comment 1 Thierry Vignaud 2014-01-21 18:20:07 CET
You're mistaken.
As documented, --wget and the like are one shot options.
Either you use those to set the downloader for one occasion
or you set the option in the config file so that it's always used.

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 2 Alex Loginov 2014-01-21 18:45:19 CET
I need option for urpmi.addmedia and gurpmi.addmedia, which will be write in /etc/urpmi/urpmi.cfg:
downloader: wget
Will you implement?
If --wget don't want to write into /etc/urpmi/urpmi.cfg, than please add new options.

Status: RESOLVED => REOPENED
Resolution: INVALID => (none)

Manuel Hiebel 2014-01-21 18:55:46 CET

Summary: urpmi.addmedia: --wget, --curl, --aria2 options don't work => urpmi.addmedia: add option to set the default downloader (urpmi.cfg)
Severity: normal => enhancement

Comment 3 Thierry Vignaud 2014-01-21 19:17:23 CET
No.
You either use the option on the command line or use edit-urpm-sources.pl in order to set the option in the config file

Status: REOPENED => RESOLVED
Resolution: (none) => INVALID

Comment 4 Alex Loginov 2014-01-21 20:04:20 CET
Thierry, I can not agree with you.
I have file example.urpmi.media:

--wget
--update
Mageia-4-ya-Core-Release-i586
http://mirror.yandex.ru/mageia/distrib/4/i586/media/core/release
--wget
--update
Mageia-4-ya-Core-Updates-i586
http://mirror.yandex.ru/mageia/distrib/4/i586/media/core/updates
--wget
--update
Mageia-4-ya-Nonfree-Release-i586
http://mirror.yandex.ru/mageia/distrib/4/i586/media/nonfree/release
--wget
--update
Mageia-4-ya-Nonfree-Updates-i586
http://mirror.yandex.ru/mageia/distrib/4/i586/media/nonfree/updates
--wget
--update
Mageia-4-ya-Tainted-Release-i586
http://mirror.yandex.ru/mageia/distrib/4/i586/media/tainted/release
--wget
--update
Mageia-4-ya-Tainted-Updates-i586
http://mirror.yandex.ru/mageia/distrib/4/i586/media/tainted/updates

and I want downloader: wget into /etc/urpmi/urpmi.cfg, but there is no mechanism.
Comment 5 Thierry Vignaud 2014-01-21 21:06:54 CET
There're two:
- vi
- the GUI
Comment 6 Alex Loginov 2014-01-21 22:53:10 CET
It's not enough for *.urpmi.media files, must be command line options.
Comment 7 Alex Loginov 2014-01-21 22:55:59 CET
It's not enough for *.urpmi.media files, command line options must be.
Sorry for my English.