commit:     8d54af6ea9a0993c097542399ad1af1e510caee2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 18 18:44:22 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov 25 11:55:34 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d54af6e

python-utils-r1.eclass: Replace local INSDESTTREE with subshells

Replace the 'local INSDESTTREE' hacks (which are PMS-valid yet
deprecated) with safer subshells.

 eclass/python-utils-r1.eclass | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 9f3c750..e690e09 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -802,10 +802,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}"
 }
@@ -833,10 +833,10 @@ python_doheader() {
 
        d=${PYTHON_INCLUDEDIR#${EPREFIX}}
 
-       local INSDESTTREE
-
-       insinto "${d}"
-       doins -r "${@}" || die
+       (
+               insinto "${d}"
+               doins -r "${@}" || die
+       )
 }
 
 # @FUNCTION: python_wrapper_setup

Reply via email to