diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-11-18 19:44:22 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-11-28 20:09:06 +0100 |
commit | 0951efe8cb419d55cddfd7dee77bc538bf9cc25b (patch) | |
tree | 98111e3ef669842eb3d77f432deb4d33fd2a9976 /eclass/python-utils-r1.eclass | |
parent | python-utils-r1.eclass: Remove py2.6 note from python_optimize (diff) | |
download | gentoo-0951efe8cb419d55cddfd7dee77bc538bf9cc25b.tar.gz gentoo-0951efe8cb419d55cddfd7dee77bc538bf9cc25b.tar.bz2 gentoo-0951efe8cb419d55cddfd7dee77bc538bf9cc25b.zip |
python-utils-r1.eclass: Replace local INSDESTTREE with subshells
Replace the 'local INSDESTTREE' hacks (which are PMS-valid yet
deprecated) with safer subshells.
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r-- | eclass/python-utils-r1.eclass | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index cb70ee8daa10..f27fdf05262b 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -805,10 +805,10 @@ python_domodule() { d=${PYTHON_SITEDIR#${EPREFIX}}/${python_moduleroot} fi - local INSDESTTREE - - insinto "${d}" - doins -r "${@}" || die + ( + insinto "${d}" + doins -r "${@}" || die + ) python_optimize "${ED}/${d}" } @@ -836,10 +836,10 @@ python_doheader() { d=${PYTHON_INCLUDEDIR#${EPREFIX}} - local INSDESTTREE - - insinto "${d}" - doins -r "${@}" || die + ( + insinto "${d}" + doins -r "${@}" || die + ) } # @FUNCTION: python_wrapper_setup |