Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506394 - app-portage/gentoolkit - equery files does not turn off colors when appropriate
Summary: app-portage/gentoolkit - equery files does not turn off colors when appropriate
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 346443
  Show dependency tree
 
Reported: 2014-03-31 19:03 UTC by redneb
Modified: 2022-07-10 23:12 UTC (History)
1 user (show)

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


Attachments

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