Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-portage-dev@l.g.o, 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:57:25
Message-Id: 544C0EB1.4000501@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 01:32 PM, Zac Medico wrote:
2 > On 10/25/2014 01:26 PM, Micha³ Górny wrote:
3 >> Dnia 2014-10-25, o godz. 12:53:15
4 >> Zac Medico <zmedico@g.o> napisa³(a):
5 >>
6 >>> On 10/25/2014 09:15 AM, Michael Palimaka wrote:
7 >>>> +eqalog() {
8 >>>> + local tag=$1 x
9 >>>> + shift
10 >>>> + for x in "$@" ; do
11 >>>> + echo "${tag}" "${x}" >> "${T}"/qa.log
12 >>>> + done
13 >>>> +}
14 >>>> +
15 >>>> +eqawarnlog() {
16 >>>> + eqalog "$@"
17 >>>> + shift
18 >>>> + for x in "$@" ; do
19 >>>> + eqawarn " $x"
20 >>>> + done
21 >>>> +}
22 >>>> +
23 >>>
24 >>> These functions are internals, so they need to be prefixed with __ like
25 >>> __eqalog and __eqawarnlog.
26 >>
27 >> eqawarnlog shouldn't be internal since we support adding QA checks
28 >> in repositories. In fact, I am planning to move some Gentoo-specific QA
29 >> checks out of portage code.
30 >
31 > It's a PMS thing. If it's not in PMS and the package manager provides
32 > it, it's supposed to be prefixed.
33
34 Note that we could have unprefixed aliases inside misc-functions.sh,
35 since misc-functions.sh env is never saved.
36 --
37 Thanks,
38 Zac

Replies