1 |
On 26/10/14 07:00, Zac Medico wrote: |
2 |
> On 10/25/2014 12:54 PM, Zac Medico wrote: |
3 |
>> On 10/25/2014 12:53 PM, Zac Medico wrote: |
4 |
>>> On 10/25/2014 09:15 AM, Michael Palimaka wrote: |
5 |
>>>> +eqalog() { |
6 |
>>>> + local tag=$1 x |
7 |
>>>> + shift |
8 |
>>>> + for x in "$@" ; do |
9 |
>>>> + echo "${tag}" "${x}" >> "${T}"/qa.log |
10 |
>>>> + done |
11 |
>>>> +} |
12 |
>>>> + |
13 |
>>>> +eqawarnlog() { |
14 |
>>>> + eqalog "$@" |
15 |
>>>> + shift |
16 |
>>>> + for x in "$@" ; do |
17 |
>>>> + eqawarn " $x" |
18 |
>>>> + done |
19 |
>>>> +} |
20 |
>>>> + |
21 |
>>> |
22 |
>>> These functions are internals, so they need to be prefixed with __ like |
23 |
>>> __eqalog and __eqawarnlog. |
24 |
>>> |
25 |
>> |
26 |
>> Also, please unset them inside bin/save-ebuild-env.sh. |
27 |
>> |
28 |
> |
29 |
> Actually, these suggestions are optional, since the environment from |
30 |
> misc-functions.sh is never saved. However, if you wanted to move them to |
31 |
> isolated-functions.sh, then these suggestions are mandatory. |
32 |
> |
33 |
|
34 |
Is it better to move them to isolated-functions and implement the above |
35 |
changes then? I only put it in misc-functions since it's near |
36 |
install_qa_check and I'm not too familiar with the file layout. :-) |