summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-01-08 20:18:38 +0000
committerMichał Górny <mgorny@gentoo.org>2013-01-08 20:18:38 +0000
commit5f43bc0e1b6e57689ff7d791ebe6b70963de57ee (patch)
tree592b0b3f09e6d44741d526ffe9bea031f87e3a9a /eclass/python-single-r1.eclass
parentKeyword for ~arm ~mips ~ppc ~ppc64 (diff)
downloadhistorical-5f43bc0e1b6e57689ff7d791ebe6b70963de57ee.tar.gz
historical-5f43bc0e1b6e57689ff7d791ebe6b70963de57ee.tar.bz2
historical-5f43bc0e1b6e57689ff7d791ebe6b70963de57ee.zip
Fix the PYTHON_SINGLE_TARGET validity check.
Diffstat (limited to 'eclass/python-single-r1.eclass')
-rw-r--r--eclass/python-single-r1.eclass18
1 files changed, 10 insertions, 8 deletions
diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass
index 461f04022617..fe2625169022 100644
--- a/eclass/python-single-r1.eclass
+++ b/eclass/python-single-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-single-r1.eclass,v 1.12 2013/01/08 16:36:16 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-single-r1.eclass,v 1.13 2013/01/08 20:18:38 mgorny Exp $
# @ECLASS: python-single-r1
# @MAINTAINER:
@@ -197,13 +197,15 @@ python-single-r1_pkg_setup() {
fi
done
- eerror "No Python implementation selected for the build. Please set"
- eerror "the PYTHON_SINGLE_TARGET variable in your make.conf to one"
- eerror "of the following values:"
- eerror
- eerror "${PYTHON_COMPAT[@]}"
- echo
- die "No supported Python implementation in PYTHON_SINGLE_TARGET."
+ if [[ ! ${EPYTHON} ]]; then
+ eerror "No Python implementation selected for the build. Please set"
+ eerror "the PYTHON_SINGLE_TARGET variable in your make.conf to one"
+ eerror "of the following values:"
+ eerror
+ eerror "${PYTHON_COMPAT[@]}"
+ echo
+ die "No supported Python implementation in PYTHON_SINGLE_TARGET."
+ fi
}
# @FUNCTION: python_fix_shebang