mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
python-any-r1.eclass: Declare PYTHON_REQUIRED_USE to catch errors
Closes: https://github.com/gentoo/gentoo/pull/12492 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: python-any-r1.eclass
|
||||
@@ -171,6 +171,12 @@ _python_any_set_globals() {
|
||||
PYTHON_DEPS=${deps}
|
||||
readonly PYTHON_DEPS
|
||||
fi
|
||||
|
||||
if [[ ! ${PYTHON_REQUIRED_USE+1} ]]; then
|
||||
# fake var to catch mistaken usage
|
||||
PYTHON_REQUIRED_USE='I-DO-NOT-EXIST-IN-PYTHON-ANY-R1'
|
||||
readonly PYTHON_REQUIRED_USE
|
||||
fi
|
||||
}
|
||||
_python_any_set_globals
|
||||
unset -f _python_any_set_globals
|
||||
|
||||
Reference in New Issue
Block a user