Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Michael Palimaka <kensington@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH 1/3] bin/misc-functions.sh: Introduce eqalog and eqawarnlog functions.
Date: Sat, 25 Oct 2014 20:03:33
Message-Id: 544C0147.20300@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH 1/3] bin/misc-functions.sh: Introduce eqalog and eqawarnlog functions. by Zac Medico
1 On 10/25/2014 12:54 PM, Zac Medico wrote:
2 > On 10/25/2014 12:53 PM, Zac Medico wrote:
3 >> On 10/25/2014 09:15 AM, Michael Palimaka wrote:
4 >>> +eqalog() {
5 >>> + local tag=$1 x
6 >>> + shift
7 >>> + for x in "$@" ; do
8 >>> + echo "${tag}" "${x}" >> "${T}"/qa.log
9 >>> + done
10 >>> +}
11 >>> +
12 >>> +eqawarnlog() {
13 >>> + eqalog "$@"
14 >>> + shift
15 >>> + for x in "$@" ; do
16 >>> + eqawarn " $x"
17 >>> + done
18 >>> +}
19 >>> +
20 >>
21 >> These functions are internals, so they need to be prefixed with __ like
22 >> __eqalog and __eqawarnlog.
23 >>
24 >
25 > Also, please unset them inside bin/save-ebuild-env.sh.
26 >
27
28 Actually, these suggestions are optional, since the environment from
29 misc-functions.sh is never saved. However, if you wanted to move them to
30 isolated-functions.sh, then these suggestions are mandatory.
31 --
32 Thanks,
33 Zac

Replies