summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-08-01 12:49:42 +0000
committerMichał Górny <mgorny@gentoo.org>2013-08-01 12:49:42 +0000
commit4659168c8cbd31e54bec61cd1e232fcee21f2cec (patch)
treed4baa8d1b8220720cba6ee1300a85f272990b9f5 /eclass/python-any-r1.eclass
parentVersion bump. Convert to distutils-r1. Bug #474692. (diff)
downloadgentoo-2-4659168c8cbd31e54bec61cd1e232fcee21f2cec.tar.gz
gentoo-2-4659168c8cbd31e54bec61cd1e232fcee21f2cec.tar.bz2
gentoo-2-4659168c8cbd31e54bec61cd1e232fcee21f2cec.zip
python-any-r1: bail out on invalid PYTHON_COMPAT.
Diffstat (limited to 'eclass/python-any-r1.eclass')
-rw-r--r--eclass/python-any-r1.eclass11
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
index cd586d47f8d4..3be995f5946c 100644
--- a/eclass/python-any-r1.eclass
+++ b/eclass/python-any-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-any-r1.eclass,v 1.12 2013/07/27 11:16:48 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-any-r1.eclass,v 1.13 2013/08/01 12:49:42 mgorny Exp $
# @ECLASS: python-any-r1
# @MAINTAINER:
@@ -114,11 +114,16 @@ fi
# @CODE
_python_build_set_globals() {
- local usestr
+ local usestr i PYTHON_PKG_DEP
[[ ${PYTHON_REQ_USE} ]] && usestr="[${PYTHON_REQ_USE}]"
+ # check for invalid PYTHON_COMPAT
+ for i in "${PYTHON_COMPAT[@]}"; do
+ # the function simply dies on invalid impl
+ _python_impl_supported "${i}"
+ done
+
PYTHON_DEPS=
- local i PYTHON_PKG_DEP
for i in "${_PYTHON_ALL_IMPLS[@]}"; do
has "${i}" "${PYTHON_COMPAT[@]}" || continue