Bug 5993

Summary: urpmi.addmedia fails for local directories
Product: Mageia Reporter: Peter D <0123peter>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: mageia
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: urpmi-6.48.1-1.mga2 CVE:
Status comment:

Description Peter D 2012-05-20 11:52:28 CEST
Description of problem:

urpmi.addmedia --probe-rpms file://mnt/hd/mageia2/rpms/noarch local_noarch fails with, "bad <url> (for local directory, the path must be absolute)".  

Version-Release number of selected component (if applicable):

Mageia2 rc i586 DVD plus updates.  

How reproducible:

Every time.  

Steps to Reproduce:
1.  Type on the command line as above.
Comment 1 Manuel Hiebel 2012-05-20 13:11:10 CEST
and with ?

urpmi.addmedia --probe-rpms /mnt/hd/mageia2/rpms/noarch local_noarch
Comment 2 Peter D 2012-05-20 14:16:42 CEST
[root@test noarch]# pwd
/mnt/hd/mageia2/rpms/noarch
[root@test noarch]# urpmi.addmedia --probe-rpms /mnt/hd/mageia2/rpms/noarch local_noarch
bad <url> (for local directory, the path must be absolute)
Comment 3 Sander Lepik 2012-05-20 19:22:23 CEST
Try this way: urpmi.addmedia local_noarch /mnt/hd/mageia2/rpms/noarch

CC: (none) => sander.lepik

Comment 4 Peter D 2012-05-21 03:29:14 CEST
[root@test noarch]# urpmi.addmedia local_noarch /mnt/hd/mageia2/rpms/noarch
adding medium "local_noarch" before remote medium "core media"
adding 57 new rpms not available in existing hdlist
replacing /var/cache/urpmi/partial/synthesis.hdlist.cz with synthesis.hdlist.cz.tmp
updating /var/cache/urpmi/partial/MD5SUM
[root@test noarch]# urpmi.addmedia --help | grep usage
usage: urpmi.addmedia [options] <name> <url>
usage: urpmi.addmedia [options] --distrib --mirrorlist <url>
usage: urpmi.addmedia [options] --mirrorlist <url> <name> <relative path>
[root@test noarch]#

Bother.  Something is confused - possibly me.  Is that third "usage" line correct?
Comment 5 Manuel Hiebel 2012-05-21 13:00:48 CEST
indeed :)

>Bother.  Something is confused - possibly me.  Is that third "usage" line
>correct?

nop you have to use usage 1, the --mirrorlist is if you want to use the api for take a mirror in list (like http://mirrors.mageia.org/api/mageia.1.i586.list)

(https://wiki.mageia.org/en/URPMI take from the mdv wiki)

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