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 v2 5/8] python-utils-r1.eclass: Sanitize insopts/exeopts
Date: Fri, 08 Jun 2018 12:02:41
Message-Id: 20180608120027.8976-5-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH v2 1/8] bash-completion-r1.eclass: Sanitize insopts by "Michał Górny"
1 Sanitize insopts/exeopts when calling doins/doexe, in order to avoid
2 prior insopts calls accidentally affecting do*/new* functions defined
3 by the eclass.
4 ---
5 eclass/python-utils-r1.eclass | 3 +++
6 1 file changed, 3 insertions(+)
7
8 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
9 index 3a462e34614a..ab4db71422d2 100644
10 --- a/eclass/python-utils-r1.eclass
11 +++ b/eclass/python-utils-r1.eclass
12 @@ -789,6 +789,7 @@ python_newexe() {
13
14 (
15 dodir "${wrapd}"
16 + exeopts -m 0755
17 exeinto "${d}"
18 newexe "${f}" "${newfn}" || return ${?}
19 )
20 @@ -920,6 +921,7 @@ python_domodule() {
21 fi
22
23 (
24 + insopts -m 0644
25 insinto "${d}"
26 doins -r "${@}" || return ${?}
27 )
28 @@ -954,6 +956,7 @@ python_doheader() {
29 d=${PYTHON_INCLUDEDIR#${EPREFIX}}
30
31 (
32 + insopts -m 0644
33 insinto "${d}"
34 doins -r "${@}" || return ${?}
35 )
36 --
37 2.18.0.rc1