public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] Portage color.map settings
@ 2009-08-15  8:47 Philipp Riegger
  2009-08-15  9:05 ` Zac Medico
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Riegger @ 2009-08-15  8:47 UTC (permalink / raw
  To: gentoo-portage-dev

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?

Thanks,
	Philipp



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-portage-dev] Portage color.map settings
  2009-08-15  8:47 [gentoo-portage-dev] Portage color.map settings Philipp Riegger
@ 2009-08-15  9:05 ` Zac Medico
  2009-08-15 10:16   ` Philipp Riegger
  0 siblings, 1 reply; 3+ messages in thread
From: Zac Medico @ 2009-08-15  9:05 UTC (permalink / raw
  To: gentoo-portage-dev

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-portage-dev] Portage color.map settings
  2009-08-15  9:05 ` Zac Medico
@ 2009-08-15 10:16   ` Philipp Riegger
  0 siblings, 0 replies; 3+ messages in thread
From: Philipp Riegger @ 2009-08-15 10:16 UTC (permalink / raw
  To: gentoo-portage-dev

On Sat, 15 Aug 2009 02:05:05 -0700
Zac Medico <zmedico@gentoo.org> wrote:

> 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.

Thanks a lot, this works great.

Philipp



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-15 10:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-15  8:47 [gentoo-portage-dev] Portage color.map settings Philipp Riegger
2009-08-15  9:05 ` Zac Medico
2009-08-15 10:16   ` Philipp Riegger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox