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

Bug 400763

Summary: glsa-check list only affected versions
Product: Portage Development Reporter: Roland Hopferwieser <gentoo>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: enhancement CC: esigra, pinkbyte
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346443    
Attachments: Patch to list only affected atoms
Patch for app-portage/gentoolkit-0.3.1

Description Roland Hopferwieser 2012-01-25 15:44:09 UTC
Created attachment 299869 [details]
Patch to list only affected atoms

It would be comfortable to list in verbose mode only atoms that are affected.

E.g.
$ equery l freetype
 * Searching for freetype ...
[IP-] [  ] media-libs/freetype-1.4_pre20080316-r2:1
[IP-] [  ] media-libs/freetype-2.4.8:2

Currently I get:
$ /usr/bin/glsa-check -qtv 201201-09
This system is affected by the following GLSAs:
201201-09 [N] [remote  ] FreeType: Multiple vulnerabilities ( media-libs/freetype-1.4_pre20080316-r2 media-libs/freetype-2.4.8 )

It would be better to get:
$ ./glsa-check -qtv 201201-09
This system is affected by the following GLSAs:
201201-09 [N] [remote  ] FreeType: Multiple vulnerabilities ( media-libs/freetype-1.4_pre20080316-r2 )

I am not familiar with python so the patch might not be very clean.
Comment 1 Roland Hopferwieser 2016-02-27 00:07:15 UTC
Created attachment 426716 [details, diff]
Patch for app-portage/gentoolkit-0.3.1
Comment 2 Paul Varner (RETIRED) gentoo-dev 2016-06-06 21:18:06 UTC
Thanks for the patch.  Pushed to the gentoolkit repository with a slight modification (used sorted instead of list for mylist).

https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=d158f2e656bd72f01b72bb94cb734fb1021934b5

This can be tested with app-portage/gentoolkit-9999
Comment 3 Zac Medico gentoo-dev 2017-01-18 16:36:33 UTC
Merge in portage's copy of glsa-check:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=75c790503028fd1d609b56c55865a38ae6a6e392
Comment 4 Zac Medico gentoo-dev 2019-08-15 21:18:56 UTC
Released in gentoolkit-0.3.2.
Comment 5 Zac Medico gentoo-dev 2019-08-15 21:21:01 UTC
*** Bug 537204 has been marked as a duplicate of this bug. ***