1 |
Hi, |
2 |
|
3 |
Attached is a small patch for the file functions.sh (part of baselayout) |
4 |
which implements the feature "emergemail" (set in /etc/make.conf FEATURES). |
5 |
When this feature is turned on (and an mta is present), all einfo, ewarn, |
6 |
and eerror messages are emailed to root. |
7 |
|
8 |
This is useful if you upgrade or install multiple packages at once, and you |
9 |
don't want to miss any important messages that go whizzing by. |
10 |
|
11 |
There is a major flaw with the current implementation. Namely, you get an |
12 |
email for _every_ invocation of einfo, ewarn, or error. The way those |
13 |
functions are commonly used (repeated calls for multi-line messages) makes |
14 |
avoiding this flaw quite difficult without rather sweeping changes to the |
15 |
design of emerge/ebuild. |
16 |
|
17 |
Comments or suggestions welcome. |
18 |
Owen |