Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: Mike Gilbert <floppym@g.o>
Subject: Re: [gentoo-dev] [PATCH] python-utils-r1.eclass: avoid nested ebegin calls
Date: Mon, 11 Jul 2022 07:04:57
Message-Id: 073dae1eb43411f129f401096f7ea71f4c1eaf8e.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH] python-utils-r1.eclass: avoid nested ebegin calls by Mike Gilbert
1 On Sun, 2022-07-10 at 23:53 -0400, Mike Gilbert wrote:
2 > It's common for python_check_deps to call python_has_version, which
3 > calls ebegin itself.
4 >
5 > Signed-off-by: Mike Gilbert <floppym@g.o>
6 > ---
7 > eclass/python-utils-r1.eclass | 3 +--
8 > 1 file changed, 1 insertion(+), 2 deletions(-)
9 >
10 > diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
11 > index a18ca58475f..acfa83d5e18 100644
12 > --- a/eclass/python-utils-r1.eclass
13 > +++ b/eclass/python-utils-r1.eclass
14 > @@ -1399,9 +1399,8 @@ _python_run_check_deps() {
15 >
16 > local PYTHON_USEDEP="python_targets_${impl}(-)"
17 > local PYTHON_SINGLE_USEDEP="python_single_target_${impl}(-)"
18 > - ebegin " python_check_deps"
19 > + einfo " python_check_deps"
20 > python_check_deps
21 > - eend ${?}
22 > }
23 >
24 > # @FUNCTION: python_has_version
25
26 What's the harm in nesting them?
27
28 --
29 Best regards,
30 Michał Górny

Replies