Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 05/29] python-utils-r1.eclass: Replace local INSDESTTREE with subshells
Date: Sun, 22 Nov 2015 19:53:56
Message-Id: 1448221870-17269-6-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCHES] Clean-up & EAPI 6 support for python-r1 suite by "Michał Górny"
1 Replace the 'local INSDESTTREE' hacks (which are PMS-valid yet
2 deprecated) with safer subshells.
3 ---
4 eclass/python-utils-r1.eclass | 16 ++++++++--------
5 1 file changed, 8 insertions(+), 8 deletions(-)
6
7 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
8 index 9f3c750..e690e09 100644
9 --- a/eclass/python-utils-r1.eclass
10 +++ b/eclass/python-utils-r1.eclass
11 @@ -802,10 +802,10 @@ python_domodule() {
12 d=${PYTHON_SITEDIR#${EPREFIX}}/${python_moduleroot}
13 fi
14
15 - local INSDESTTREE
16 -
17 - insinto "${d}"
18 - doins -r "${@}" || die
19 + (
20 + insinto "${d}"
21 + doins -r "${@}" || die
22 + )
23
24 python_optimize "${ED}/${d}"
25 }
26 @@ -833,10 +833,10 @@ python_doheader() {
27
28 d=${PYTHON_INCLUDEDIR#${EPREFIX}}
29
30 - local INSDESTTREE
31 -
32 - insinto "${d}"
33 - doins -r "${@}" || die
34 + (
35 + insinto "${d}"
36 + doins -r "${@}" || die
37 + )
38 }
39
40 # @FUNCTION: python_wrapper_setup
41 --
42 2.6.3