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

Replace the 'local INSDESTTREE' hacks (which are PMS-valid yet
deprecated) with safer subshells.
This commit is contained in:
Michał Górny
2015-11-28 20:09:06 +01:00
parent 2421e06b05
commit 0951efe8cb
+8 -8
View 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