Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 232635 - epkginfo displays weird output when a package has the last version of a package is stable and older are in ~arch
Summary: epkginfo displays weird output when a package has the last version of a packa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2008-07-22 10:10 UTC by Alexis Ballier
Modified: 2009-06-19 17:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Make epkginfo slot aware and only print keywords for the highest visible versions in each slot (gentoolkit-epkginfo-print-only-best-keywords-for-each-slot.patch,4.26 KB, patch)
2009-06-05 21:57 UTC, Sebastian Luther (few)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2008-07-22 10:10:23 UTC
For example:
$ epkginfo faac
Package: media-libs/faac
Herd: sound
Maintainer: sound
Location: /usr/portage_cvs/gentoo-x86/media-libs/faac
Keywords: faac-1.24-r2: ~mips 
Keywords: faac-1.24-r4: ~alpha ~arm ~ia64 ~ppc ~ppc64 ~sh ~x86 
Keywords: faac-1.25: ~amd64 ~hppa ~sparc 
Keywords: faac-1.26-r1: alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd 


I would expect something like:
$ epkginfo faac
Package: media-libs/faac
Herd: sound
Maintainer: sound
Location: /usr/portage_cvs/gentoo-x86/media-libs/faac
Keywords: faac-1.24-r2: ~mips 
Keywords: faac-1.24-r4:
Keywords: faac-1.25:
Keywords: faac-1.26-r1: alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd 

since 1.26-r1 is also the best visible for ~arch


that would greatly help for knowing which version can be safely removed ;)
(though it doesn't seem to handle package.mask)
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-06-05 18:38:30 UTC
Fixing the output, meh...it works now

package.mask support on the other hand...cool enhancement. 
Comment 2 Sebastian Luther (few) 2009-06-05 21:57:09 UTC
Created attachment 193665 [details, diff]
Make epkginfo slot aware and only print keywords for the highest visible versions in each slot
Comment 3 Sebastian Luther (few) 2009-06-05 22:04:03 UTC
Example:

$ epkginfo glib
Package: dev-libs/glib
Herd: gnome
Maintainer: none
Location: /usr/portage/dev-libs/glib
Keywords: glib-1.2.10-r5[1]: alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86 ~mips ~x86-fbsd 
Keywords: glib-2.16.6-r1[2]: 
Keywords: glib-2.18.4-r1[2]: alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86 
Keywords: glib-2.18.4-r2[2]: 
Keywords: glib-2.20.1[2]: 
Keywords: glib-2.20.1-r1[2]: 
Keywords: glib-2.20.2[2]: ~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd 
Comment 4 solar (RETIRED) gentoo-dev 2009-06-05 22:05:32 UTC
Good work. Thanks (few)
Comment 5 Paul Varner (RETIRED) gentoo-dev 2009-06-06 02:55:34 UTC
$ svn commit -m "Add patch from Sebastian Mingramm to Make epkginfo slot aware and only print keywords for the highest visible versions in each slot. (Bug 232635)"
Sending        gentoolkit/ChangeLog
Sending        gentoolkit/bin/epkginfo
Transmitting file data ..
Committed revision 662.
Comment 6 Paul Varner (RETIRED) gentoo-dev 2009-06-19 17:13:45 UTC
Released in gentoolkit-0.3.0_rc7