1 |
On Sun, 23 Oct 2005 11:54:07 +0900 |
2 |
Jason Stubbs <jstubbs@g.o> wrote: |
3 |
|
4 |
> Seeing that interspersed einfo and ewarn calls will be separated |
5 |
> by class anyway, is there any need to play with the ordering at |
6 |
> all? |
7 |
|
8 |
That's also one thing i don't understand with elog: why does it |
9 |
separate messages in many files instead of using a single one with |
10 |
a simple markup? In the implementation of a similar feature i had |
11 |
done as part of bug #37491, i was using something like: |
12 |
|
13 |
... |
14 |
[ebuild:/path/to/foo-bar-1.2.ebuild package:cat/foo-bar-1.2 |
15 |
step:post_inst date:1234567890] |
16 |
[emessage:info] |
17 |
You can try to run "foo-bar --break-things", it's fun. |
18 |
[emessage:warn] |
19 |
Don't do it too often tho, it hurts. |
20 |
[emessage:info] |
21 |
Also, run "foo-bar --check-things" from time to time. |
22 |
... |
23 |
|
24 |
It was really easy to parse and pretty-print, and was giving |
25 |
messages in the right order. And in some cases, it matters: for |
26 |
instance, the following would have been missleading: |
27 |
* You can try to run "foo-bar --destroy-things", it's fun. |
28 |
* Also, run "foo-bar --check-things" from time to time. |
29 |
* Don't do it too often tho, it hurts. |
30 |
|
31 |
|
32 |
Also, one thing i had seen when working on this old patches was that |
33 |
einfos from eclasses really clutter the logs you get. I mean, few |
34 |
packages don't have at least an "Applying something.patch" or a |
35 |
"Cleaning orphan /usr/lib/python/plopplop.pyo", etc. I think it |
36 |
would be a good idea to provide some einfo-like functions which do |
37 |
not write to logs, just for eclass writers who want color when they |
38 |
feel the need to tell the world what their code is currently doing. |
39 |
That would reduce a lot the number of packages with false-positive |
40 |
elogs. |
41 |
|
42 |
-- |
43 |
TGL. |
44 |
-- |
45 |
gentoo-portage-dev@g.o mailing list |