Philipp Riegger wrote:
> Hi!
> 
> Given the following portage output:
> 
> "
> troy ~ # USE="examples" emerge -pv python
> --- Invalid atom
> in /usr/portage/local/layman/dev-zero/profiles/package.mask:
> =dev-libs/boost-log-scm
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R   ] dev-lang/python-3.1  USE="-build -doc examples* gdbm
> ipv6 ncurses readline sqlite ssl threads tk -ucs2 -wininst xml" 0 kB
> 
> Total: 1 package (1 reinstall), Size of downloads: 0 kB
> troy ~ # 
> "
> 
> The "R" after "[ebuild" appears in yellow. The "examples" (USE-flag) in
> green. How can I switch those to darker colors?

With >=portage-2.2_rc34, this patch is included:

 http://bugs.gentoo.org/show_bug.cgi?id=274279

With that you can do things like yellow=darkblue and green=darkgreen.

It would be a better if we added special styles like
PKG_REINSTALL=darkblue and PKG_NEW_USE_ENABLED=darkgreen. I'll
accept patches to add new styles such as these. The relevant code
for the colors you mentioned is in depgraph.py:

http://sources.gentoo.org/viewcvs.py/portage/main/trunk/pym/_emerge/depgraph.py?view=markup

All that needs to be done is to replace hardcoded colors such as
green(flag) with colorize('PKG_NEW_USE_ENABLED', flag).

> Thanks,
>       Philipp
> 


-- 
Thanks,
Zac

Reply via email to