Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Cc: Mike Gilbert <floppym@g.o>
Subject: [gentoo-dev] [PATCH] python-utils-r1.eclass: avoid nested ebegin calls
Date: Mon, 11 Jul 2022 03:53:33
Message-Id: 20220711035322.3450395-1-floppym@gentoo.org
1 It's common for python_check_deps to call python_has_version, which
2 calls ebegin itself.
3
4 Signed-off-by: Mike Gilbert <floppym@g.o>
5 ---
6 eclass/python-utils-r1.eclass | 3 +--
7 1 file changed, 1 insertion(+), 2 deletions(-)
8
9 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
10 index a18ca58475f..acfa83d5e18 100644
11 --- a/eclass/python-utils-r1.eclass
12 +++ b/eclass/python-utils-r1.eclass
13 @@ -1399,9 +1399,8 @@ _python_run_check_deps() {
14
15 local PYTHON_USEDEP="python_targets_${impl}(-)"
16 local PYTHON_SINGLE_USEDEP="python_single_target_${impl}(-)"
17 - ebegin " python_check_deps"
18 + einfo " python_check_deps"
19 python_check_deps
20 - eend ${?}
21 }
22
23 # @FUNCTION: python_has_version
24 --
25 2.37.0

Replies