Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 508114

Summary: app-portage/gentoolkit: equery meta always displays the license field
Product: Portage Development Reporter: Tobias Heinlein (RETIRED) <keytoaster>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346443    
Attachments: Patch

Description Tobias Heinlein (RETIRED) gentoo-dev 2014-04-19 16:52:30 UTC
Running equery meta with specific options, e.g. --keywords, also displays the license field:

$ equery meta apache -k
 * www-servers/apache [gentoo]
2.2.24:2: ppc64
2.2.25:2: alpha amd64 arm arm64 hppa ia64 ppc s390 sh sparc x86
2.2.26:2:
2.2.27:2:
2.4.9:2: ~alpha ~amd64 ~amd64-fbsd ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd
License:     Apache-2.0 Apache-1.1
$

The attached patch makes it print the license field only when no options are given, or if printing the license is explicitly requested.
Comment 1 Tobias Heinlein (RETIRED) gentoo-dev 2014-04-19 16:54:50 UTC
Created attachment 375306 [details, diff]
Patch
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2014-04-19 17:02:55 UTC
The patch looks good. Please commit it to the gentoolkit branch.
Comment 3 Tobias Heinlein (RETIRED) gentoo-dev 2014-04-19 18:28:02 UTC
Done, thanks.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2014-11-12 18:24:10 UTC
This is released in gentoolkit-0.3.0.9-r2