summaryrefslogtreecommitdiff
path: root/eclass
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
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')
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/python-any-r1.eclass11
2 files changed, 12 insertions, 4 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index b1ddaeac884a..fde120b455e5 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.907 2013/07/31 21:18:41 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.908 2013/08/01 12:49:42 mgorny Exp $
+
+ 01 Aug 2013; Michał Górny <mgorny@gentoo.org> python-any-r1.eclass:
+ python-any-r1: bail out on invalid PYTHON_COMPAT.
31 Jul 2013; Julian Ospald <hasufell@gentoo.org> kernel-2.eclass:
reword security-deblob-thing acked by keytoaster
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