summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2015-11-02 11:14:35 -0500
committerMike Gilbert <floppym@gentoo.org>2015-11-07 20:30:52 -0500
commit4d18149d91c43e257a99df9efbb54ea8d7b05637 (patch)
tree0bf7aae33a94bef252b37e94fbd13bbf8926e03e /eclass/python-any-r1.eclass
parentwww-client/chromium: Beta channel bump (47.0.2526.49) (diff)
downloadgentoo-4d18149d91c43e257a99df9efbb54ea8d7b05637.tar.gz
gentoo-4d18149d91c43e257a99df9efbb54ea8d7b05637.tar.bz2
gentoo-4d18149d91c43e257a99df9efbb54ea8d7b05637.zip
python-r1.eclass: Ensure that PYTHON_COMPAT is an array
As suggested by Arfrever. Bug: https://bugs.gentoo.org/564258
Diffstat (limited to 'eclass/python-any-r1.eclass')
-rw-r--r--eclass/python-any-r1.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
index 0f641a8a6443..c00cc3a3e09a 100644
--- a/eclass/python-any-r1.eclass
+++ b/eclass/python-any-r1.eclass
@@ -75,6 +75,9 @@ if [[ ! ${_PYTHON_ANY_R1} ]]; then
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_REQ_USE
# @DEFAULT_UNSET