Bug 5993 - urpmi.addmedia fails for local directories
Summary: urpmi.addmedia fails for local directories
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-20 11:52 CEST by Peter D
Modified: 2012-05-21 13:00 CEST (History)
1 user (show)

See Also:
Source RPM: urpmi-6.48.1-1.mga2
CVE:
Status comment:


Attachments

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


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