diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2012-05-21 17:30:35 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2012-05-21 17:30:35 +0000 |
commit | 295dab93148371fb6b3cdc111524b6f37757cbff (patch) | |
tree | d418223214a782596b374d509b4caee71ee05fa6 /eclass/python-distutils-ng.eclass | |
parent | Marking Config-IniFiles-2.710.0 ppc for bug 414485 (diff) | |
download | gentoo-2-295dab93148371fb6b3cdc111524b6f37757cbff.tar.gz gentoo-2-295dab93148371fb6b3cdc111524b6f37757cbff.tar.bz2 gentoo-2-295dab93148371fb6b3cdc111524b6f37757cbff.zip |
Fix #! line for installed scripts and install them for enabled implementations, see bug #416131.
Diffstat (limited to 'eclass/python-distutils-ng.eclass')
-rw-r--r-- | eclass/python-distutils-ng.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/python-distutils-ng.eclass b/eclass/python-distutils-ng.eclass index 199f8ffb8efa..b8961e87f63c 100644 --- a/eclass/python-distutils-ng.eclass +++ b/eclass/python-distutils-ng.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-distutils-ng.eclass,v 1.20 2012/05/14 19:23:09 nelchael Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python-distutils-ng.eclass,v 1.21 2012/05/21 17:30:35 nelchael Exp $ # @ECLASS: python-distutils-ng # @MAINTAINER: @@ -374,4 +374,10 @@ python-distutils-ng_src_install() { python_install_all popd &> /dev/null fi + + if [[ -z "${PYTHON_DISABLE_SCRIPT_REDOS}" ]]; then + for script_file in $(find "${D}"{,usr/}{,s}bin/ -type f -executable 2> /dev/null); do + python-distutils-ng_redoscript "/${script_file#${D}}" + done + fi } |