Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400763 - glsa-check list only affected versions
Summary: glsa-check list only affected versions
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Lowest enhancement with 1 vote (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 537204 (view as bug list)
Depends on:
Blocks: 346443
  Show dependency tree
 
Reported: 2012-01-25 15:44 UTC by Roland Hopferwieser
Modified: 2019-08-15 21:21 UTC (History)
2 users (show)

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


Attachments
Patch to list only affected atoms (list_only_affected_atoms.diff,732 bytes, text/plain)
2012-01-25 15:44 UTC, Roland Hopferwieser
Details
Patch for app-portage/gentoolkit-0.3.1 (list_only_affected_atoms.diff,926 bytes, patch)
2016-02-27 00:07 UTC, Roland Hopferwieser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***