Bug 4947

Summary: drop unused names.<media_name> files
Product: Mageia Reporter: Guillaume Rousse <guillomovitch>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED INVALID QA Contact:
Severity: minor    
Priority: Low CC: davidwhodgins
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: urpmi CVE:
Status comment:

Description Guillaume Rousse 2012-03-14 20:14:56 CET
The automatic handling of /var/lib/urpmi/names.<media_name> files has been introduced as a hack for speeding up urpmi bash completion. However, it is not used anymore, and I doubt any other program ever used them.

I think it is quite safe to drop _generate_medium_names function in media.pm, as well as the only line calling it in the same file.

It's actually a 'feature removal' request, but there is no such category in bugzilla :)
Manuel Hiebel 2012-03-14 21:33:28 CET

Assignee: bugsquad => thierry.vignaud

Comment 1 Dave Hodgins 2012-03-14 22:10:19 CET
I actually use those files when confirming (after the fact), where I
installed a package from.  I.E. core updates testing or non-free updates
testing.  At present, urpmi.update doesn't always seem to create the
one for updates testing, and I then have to run rpmdrake to create it.

I find grep packagename /var/lib/urpmi/na* to be the fastest way to do that.

I also sometimes use the file to see which packages were generated at
about the same time (since the files are in push order), when an update
involves multiple srpm files.

CC: (none) => davidwhodgins

Comment 2 Marja Van Waes 2012-05-26 13:04:00 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Comment 3 Guillaume Rousse 2012-05-30 11:39:25 CEST
Dave: urpmq --list | grep is just marginally slower, and less error-prone, as it honours urpmi configuration, such as disabled medias.

Thierry: any opinion here ? Otherwise, we might as well close this one.
Comment 4 Thierry Vignaud 2012-10-12 09:52:19 CEST
urpmq & urpmf are fast when names exist...

Priority: Normal => Low
Status: NEW => RESOLVED
Resolution: (none) => INVALID