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

Bug 506394

Summary: app-portage/gentoolkit - equery files does not turn off colors when appropriate
Product: Portage Development Reporter: redneb <redneb>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal CC: esigra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 346443    

Description redneb 2014-03-31 19:03:17 UTC
While some subcommands of equery automatically turn off colors when stdout is not a tty (e.g. equery list does that), the files subcommand doesn't do that. For example, the output of

    equery files bash | cat

contains colors. This means that things like

    equery files bash | grep ^/bin

do not work as expected.
Comment 1 Larry the Git Cow gentoo-dev 2022-07-10 01:24:31 UTC
The bug has been referenced in the following commit(s):

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

commit 84ffe42e52d06fd90a21c93d60dbec7c64b621cf
Author:     Brian Dolbec <dolsen@gentoo.org>
AuthorDate: 2022-07-10 01:06:50 +0000
Commit:     Brian Dolbec <dolsen@gentoo.org>
CommitDate: 2022-07-10 01:06:50 +0000

    equery: Turn off color when piping is set
    
    Bug: https://bugs.gentoo.org/506394
    
    Signed-off-by: Brian Dolbec <dolsen@gentoo.org>

 pym/gentoolkit/equery/__init__.py | 2 ++
 1 file changed, 2 insertions(+)