mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-06 05:37:14 -08:00
python-r1.eclass: Ensure that PYTHON_COMPAT is an array
As suggested by Arfrever. Bug: https://bugs.gentoo.org/564258
This commit is contained in:
@@ -84,6 +84,9 @@ inherit multibuild python-utils-r1
|
||||
if ! declare -p PYTHON_COMPAT &>/dev/null; then
|
||||
die 'PYTHON_COMPAT not declared.'
|
||||
fi
|
||||
if [[ $(declare -p PYTHON_COMPAT) != "declare -a"* ]]; then
|
||||
die 'PYTHON_COMPAT must be an array.'
|
||||
fi
|
||||
|
||||
# @ECLASS-VARIABLE: PYTHON_COMPAT_OVERRIDE
|
||||
# @INTERNAL
|
||||
|
||||
Reference in New Issue
Block a user