Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 28 Nov 2015 19:09:53
Message-Id: 1448737746.0951efe8cb419d55cddfd7dee77bc538bf9cc25b.mgorny@gentoo
1 commit: 0951efe8cb419d55cddfd7dee77bc538bf9cc25b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 18 18:44:22 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 28 19:09:06 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0951efe8
7
8 python-utils-r1.eclass: Replace local INSDESTTREE with subshells
9
10 Replace the 'local INSDESTTREE' hacks (which are PMS-valid yet
11 deprecated) with safer subshells.
12
13 eclass/python-utils-r1.eclass | 16 ++++++++--------
14 1 file changed, 8 insertions(+), 8 deletions(-)
15
16 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
17 index cb70ee8..f27fdf0 100644
18 --- a/eclass/python-utils-r1.eclass
19 +++ b/eclass/python-utils-r1.eclass
20 @@ -805,10 +805,10 @@ python_domodule() {
21 d=${PYTHON_SITEDIR#${EPREFIX}}/${python_moduleroot}
22 fi
23
24 - local INSDESTTREE
25 -
26 - insinto "${d}"
27 - doins -r "${@}" || die
28 + (
29 + insinto "${d}"
30 + doins -r "${@}" || die
31 + )
32
33 python_optimize "${ED}/${d}"
34 }
35 @@ -836,10 +836,10 @@ python_doheader() {
36
37 d=${PYTHON_INCLUDEDIR#${EPREFIX}}
38
39 - local INSDESTTREE
40 -
41 - insinto "${d}"
42 - doins -r "${@}" || die
43 + (
44 + insinto "${d}"
45 + doins -r "${@}" || die
46 + )
47 }
48
49 # @FUNCTION: python_wrapper_setup