python-utils-r1.eclass: Replace local INSDESTTREE with subshells
authorMichał Górny <mgorny@gentoo.org>
Wed, 18 Nov 2015 18:44:22 +0000 (19:44 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 28 Nov 2015 19:09:06 +0000 (20:09 +0100)
Replace the 'local INSDESTTREE' hacks (which are PMS-valid yet
deprecated) with safer subshells.

eclass/python-utils-r1.eclass

index cb70ee8daa107379cab6dea122d1ee2dfa570cb5..f27fdf05262b24eee1895f2f01e36d41fd31e3da 100644 (file)
@@ -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