Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950480 - sys-apps/portage: glsa-check don't work consistent.
Summary: sys-apps/portage: glsa-check don't work consistent.
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-03-02 21:10 UTC by Micha Glave
Modified: 2025-03-03 19:46 UTC (History)
1 user (show)

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


Attachments
Patch to make glsa-check a more consistent. (glsa-check.patch,830 bytes, patch)
2025-03-02 21:16 UTC, Micha Glave
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Micha Glave 2025-03-02 21:10:24 UTC
# Different exit-values

`glsa-check -t affected` returns `6` when there are affected-packages.
`glsa-check -t -v affected` returns `0` 

Error is here [https://github.com/gentoo/portage/blob/master/bin/glsa-check#L419] the return-code 6 is only given, the `verbose`-flag is not set. 
The indent is one level to deep.

# No exit-value in list-mode
`glsa-check -l affected` returns `0` in any case. 

Even worser: the package-listing is printed to `std-out`, and the legend at the bottom is printed to `std_err`. The other way round would be more sensible.




Reproducible: Always
Comment 1 Micha Glave 2025-03-02 21:16:59 UTC
Created attachment 920152 [details, diff]
Patch to make glsa-check a more consistent.