From: Michał Górny Date: Wed, 18 Nov 2015 18:44:22 +0000 (+0100) Subject: python-utils-r1.eclass: Replace local INSDESTTREE with subshells X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0951efe8cb419d55cddfd7dee77bc538bf9cc25b;p=gentoo.git python-utils-r1.eclass: Replace local INSDESTTREE with subshells Replace the 'local INSDESTTREE' hacks (which are PMS-valid yet deprecated) with safer subshells. --- 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