1 |
>>>>> On Mon, 22 Aug 2016, Thomas Deutschmann wrote: |
2 |
|
3 |
> [...] |
4 |
|
5 |
> This commit adds a new global variable "EPATCH_N_APPLIED_PATCHES" |
6 |
> which tracks the number of applied user patches. This allows us to |
7 |
> only show the notice when user patches were really applied. |
8 |
|
9 |
I wonder if extending an obsolete feature is worth the effort. |
10 |
In EAPI 6, epatch_user has been replaced by eapply_user. |
11 |
|
12 |
> + : $(( EPATCH_N_APPLIED_PATCHES++ )) |
13 |
|
14 |
Why not simply: |
15 |
(( EPATCH_N_APPLIED_PATCHES++ )) |
16 |
|
17 |
> + if [[ ${old_n_applied_patches} -lt ${EPATCH_N_APPLIED_PATCHES} ]]; then |
18 |
> + has epatch_user_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS+=" epatch_user_death_notice" |
19 |
|
20 |
Please keep lines no wider than 80 character positions. |
21 |
|
22 |
Ulrich |