summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-11-24 21:07:14 +0000
committerMichał Górny <mgorny@gentoo.org>2012-11-24 21:07:14 +0000
commite11f2e880170ec409ca43860139b31979e6392ff (patch)
tree6723137aa450f44a150ca563abe18fd9ce1b9a24 /eclass/python.eclass
parentold (diff)
downloadgentoo-2-e11f2e880170ec409ca43860139b31979e6392ff.tar.gz
gentoo-2-e11f2e880170ec409ca43860139b31979e6392ff.tar.bz2
gentoo-2-e11f2e880170ec409ca43860139b31979e6392ff.zip
Fix EAPI checks, add double- and colliding include guards.
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r--eclass/python.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass
index d98e36be5df1..2d551a85a0ba 100644
--- a/eclass/python.eclass
+++ b/eclass/python.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.160 2012/10/02 01:22:57 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.161 2012/11/24 21:07:14 mgorny Exp $
# @ECLASS: python.eclass
# @MAINTAINER:
@@ -9,6 +9,10 @@
# @DESCRIPTION:
# The python eclass contains miscellaneous, useful functions for Python packages.
+if [[ ${_PYTHON_UTILS_R1} ]]; then
+ die 'python.eclass can not be used with python-r1 suite eclasses.'
+fi
+
# Must call inherit before EXPORT_FUNCTIONS to avoid QA warning.
if [[ -z "${_PYTHON_ECLASS_INHERITED}" ]]; then
inherit multilib