Gentoo Archives: gentoo-dev

From: Owen Gunden <ogunden@××××××××××××.edu>
To: gentoo-dev@g.o
Subject: [gentoo-dev] patch: emergemail feature in functions.sh
Date: Tue, 19 Aug 2003 05:37:25
Message-Id: 20030819053722.GA28151@force.stwing.upenn.edu
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

Attachments

File name MIME type
functions.sh.patch text/plain

Replies

Subject Author
Re: [gentoo-dev] patch: emergemail feature in functions.sh Jon Portnoy <avenj@g.o>
Re: [gentoo-dev] patch: emergemail feature in functions.sh Mike Frysinger <vapier@g.o>
Re: [gentoo-dev] patch: emergemail feature in functions.sh Karsten Schulz <kaschu@×××××××××.de>
Re: [gentoo-dev] patch: emergemail feature in functions.sh Thomas de Grenier de Latour <degrenier@×××××××××××.fr>