summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-03-09 13:52:55 +0000
committerMichał Górny <mgorny@gentoo.org>2013-03-09 13:52:55 +0000
commitc92da7d0e12d841db9970f6bdb026723ca0581cc (patch)
tree25509d0d5926a67c6ab7f5a751b9893da2d082ee /eclass/python-r1.eclass
parentIntroduce multilib_copy_sources. (diff)
downloadgentoo-2-c92da7d0e12d841db9970f6bdb026723ca0581cc.tar.gz
gentoo-2-c92da7d0e12d841db9970f6bdb026723ca0581cc.tar.bz2
gentoo-2-c92da7d0e12d841db9970f6bdb026723ca0581cc.zip
Clean up redundant USE flag check calls, replace them with a single call in _python_obtain_impls().
Diffstat (limited to 'eclass/python-r1.eclass')
-rw-r--r--eclass/python-r1.eclass13
1 files changed, 4 insertions, 9 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index 634042da0fd4..12e3baa60960 100644
--- a/eclass/python-r1.eclass
+++ b/eclass/python-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-r1.eclass,v 1.48 2013/03/09 13:51:39 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.49 2013/03/09 13:52:55 mgorny Exp $
# @ECLASS: python-r1
# @MAINTAINER:
@@ -357,9 +357,6 @@ python_gen_cond_dep() {
python_copy_sources() {
debug-print-function ${FUNCNAME} "${@}"
- _python_validate_useflags
- _python_check_USE_PYTHON
-
local MULTIBUILD_VARIANTS
_python_obtain_impls
@@ -579,6 +576,9 @@ _python_check_USE_PYTHON() {
# @DESCRIPTION:
# Set up the enabled implementation list.
_python_obtain_impls() {
+ _python_validate_useflags
+ _python_check_USE_PYTHON
+
MULTIBUILD_VARIANTS=()
for impl in "${_PYTHON_ALL_IMPLS[@]}"; do
@@ -621,9 +621,6 @@ _python_multibuild_wrapper() {
python_foreach_impl() {
debug-print-function ${FUNCNAME} "${@}"
- _python_validate_useflags
- _python_check_USE_PYTHON
-
local MULTIBUILD_VARIANTS
_python_obtain_impls
@@ -695,8 +692,6 @@ python_export_best() {
python_replicate_script() {
debug-print-function ${FUNCNAME} "${@}"
- _python_validate_useflags
-
local suffixes=()
_add_suffix() {