Bug 14328

Summary: urpmi wont use local rpm depository
Product: Mageia Reporter: Robert Courtright <rbcourt>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: Normal CC: marja11, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: urpmi-8.01-2.mga5 CVE:
Status comment:

Description Robert Courtright 2014-10-18 21:59:53 CEST
Description of problem: urpmi wont use local  rpm depository


Version-Release number of selected component (if applicable):
urpmi-8.01-2.mga5

How reproducible:
with every update

Steps to Reproduce:
1. build a local directory of local rpm's
2. add that directory to the list of sources
3. using urpmi try to install one of those rpms

I have Cauldron installed on 5 different machine all of different configurations for testing.
I keep a copy of Cauldron rpms on my file server and is updated from the closest repository every 6 hours. If I add the that directoryas a source urpmi will not use it. No matter how I add the directory by command line or gui. Its much harder to do testing with this problem.

Reproducible: 

Steps to Reproduce:
Comment 1 Thierry Vignaud 2014-11-24 14:04:23 CET
urpmi does use properly installed media.
If you try to install a package which have same NEVR in several media, urpmi will pick it from the first matching medium

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

Comment 2 Robert Courtright 2014-11-24 15:20:40 CET
Yes I know that. Not all media have the same new packages.

In Mageia 4 cauldron no matter what I did it would not use the local repositorys

Once Mageia 4 was released it worked like all other earlier versions did.

Now the problem is. 

Now if I use urpmi.addmedia --distrib {Path}
I get no error when loading but all packages are up to date.

If I use urpmi.addmedia {Name} file:{Path}media/core/release

It works like I would expect but I have to create a uniqe name for each,

I then update to the locals first I get >95% of all rpms.

I then add remote repositorys and len than <5% of the total.

Just to make sure I had the right idea. I loaded 2 machinea with the alpha 2
and updated it to the latest. Both ad to upgrade over 1900 packages,
The first only using the remote mirrors took 2 days.
The second using both local then remote took less than 2 hours.

This is why I keep my own local repositorys
Comment 3 Marja Van Waes 2014-11-24 21:03:17 CET
Do you make sure that all lines about the local repo come first in /etc/urpmi/urpmi.cfg (so above the ones for the remote repo)?

CC: (none) => marja11

Comment 4 Robert Courtright 2014-11-25 05:46:04 CET
Yes! It don't work when I use urpmi.addmedia --distrib {Path}
and it works when I use urpmi.addmedia {Name} file:{Path}media/core/release
Comment 5 Thierry Vignaud 2014-11-25 10:58:19 CET
Then the media.cfg you manually wrote must be invalid as it works fine for official with --distrib & for individual local medium