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 19:54:54
Message-Id: 544C000A.6000002@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:53 PM, Zac Medico wrote:
2 > On 10/25/2014 09:15 AM, Michael Palimaka wrote:
3 >> +eqalog() {
4 >> + local tag=$1 x
5 >> + shift
6 >> + for x in "$@" ; do
7 >> + echo "${tag}" "${x}" >> "${T}"/qa.log
8 >> + done
9 >> +}
10 >> +
11 >> +eqawarnlog() {
12 >> + eqalog "$@"
13 >> + shift
14 >> + for x in "$@" ; do
15 >> + eqawarn " $x"
16 >> + done
17 >> +}
18 >> +
19 >
20 > These functions are internals, so they need to be prefixed with __ like
21 > __eqalog and __eqawarnlog.
22 >
23
24 Also, please unset them inside bin/save-ebuild-env.sh.
25 --
26 Thanks,
27 Zac

Replies