summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-06-09 07:51:13 +0200
committerMichał Górny <mgorny@gentoo.org>2022-06-12 10:31:03 +0200
commit150538e302a34e89b9364d63fadfb6683b3af2d6 (patch)
treeb1d23e784b976c9743ba205a5a389e9a0d31517a /eclass/distutils-r1.eclass
parentdistutils-r1.eclass: Add assertions for bindir correctness (diff)
downloadgentoo-150538e302a34e89b9364d63fadfb6683b3af2d6.tar.gz
gentoo-150538e302a34e89b9364d63fadfb6683b3af2d6.tar.bz2
gentoo-150538e302a34e89b9364d63fadfb6683b3af2d6.zip
python-r1.eclass: Warn about direct foreach_impl calls in d-r1
Warn if python_foreach_impl is called directly from within a phase function that is already covered by a distutils-r1 sub-phase. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r--eclass/distutils-r1.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index c4a46a620546..693b656b21bc 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1752,6 +1752,7 @@ _distutils-r1_run_foreach_impl() {
set -- distutils-r1_run_phase "${@}"
if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
+ local _DISTUTILS_CALLING_FOREACH_IMPL=1
python_foreach_impl "${@}"
else
if [[ ! ${EPYTHON} ]]; then