diff options
author | Michał Górny <mgorny@gentoo.org> | 2014-05-26 16:13:35 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2014-05-26 16:13:35 +0000 |
commit | 33e282bf5a343f7a7da8b0063a45c765898a92e7 (patch) | |
tree | b6e7b8b466d5c881070b75f89a3198afb6ed3de2 /eclass/python-r1.eclass | |
parent | Initial import from the qt overlay, thanks to Harvey Mittens and Davide Pesav... (diff) | |
download | gentoo-2-33e282bf5a343f7a7da8b0063a45c765898a92e7.tar.gz gentoo-2-33e282bf5a343f7a7da8b0063a45c765898a92e7.tar.bz2 gentoo-2-33e282bf5a343f7a7da8b0063a45c765898a92e7.zip |
Move python_fix_shebang into python-utils-r1, therefore making it a part of public API for all eclasses.
Diffstat (limited to 'eclass/python-r1.eclass')
-rw-r--r-- | eclass/python-r1.eclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index 0fb188d0d6bb..8670ab6d4073 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.72 2014/04/19 10:29:06 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.73 2014/05/26 16:13:35 mgorny Exp $ # @ECLASS: python-r1 # @MAINTAINER: @@ -783,6 +783,8 @@ python_replicate_script() { debug-print-function ${FUNCNAME} "${@}" _python_replicate_script() { + local _PYTHON_FIX_SHEBANG_QUIET=1 + if _python_want_python_exec2; then local PYTHON_SCRIPTDIR python_export PYTHON_SCRIPTDIR @@ -792,7 +794,7 @@ python_replicate_script() { doexe "${files[@]}" ) - _python_rewrite_shebang "${EPYTHON}" \ + python_fix_shebang \ "${files[@]/*\//${D%/}/${PYTHON_SCRIPTDIR}/}" else local f @@ -800,7 +802,7 @@ python_replicate_script() { cp -p "${f}" "${f}-${EPYTHON}" || die done - _python_rewrite_shebang "${EPYTHON}" \ + python_fix_shebang \ "${files[@]/%/-${EPYTHON}}" fi } |