Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:python-eapi6 commit in: eclass/
Date: Fri, 27 Nov 2015 13:16:44
Message-Id: 1448629509.c514e77de192917d9949ae6a7daa141bf5ad7994.mgorny@gentoo
1 commit: c514e77de192917d9949ae6a7daa141bf5ad7994
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: Fri Nov 27 13:05:09 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c514e77d
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 4474766..58c82bd 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