Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: Thomas Deutschmann <whissi@g.o>
Subject: Re: [gentoo-dev] [PATCH] eutils.eclass: Show death notice only when user patches were really applied
Date: Mon, 22 Aug 2016 07:31:05
Message-Id: 22458.43548.445226.8005@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-dev] [PATCH] eutils.eclass: Show death notice only when user patches were really applied by Thomas Deutschmann
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

Replies