Skip to content

Commit

Permalink
python-utils-r1.eclass: Sanitize insopts/exeopts
Browse files Browse the repository at this point in the history
Sanitize insopts/exeopts when calling doins/doexe, in order to avoid
prior insopts calls accidentally affecting do*/new* functions defined
by the eclass.
  • Loading branch information
mgorny committed Jun 13, 2018
1 parent 45fd9de commit d2e9c4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eclass/python-utils-r1.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ python_newexe() {

(
dodir "${wrapd}"
exeopts -m 0755
exeinto "${d}"
newexe "${f}" "${newfn}" || return ${?}
)
Expand Down Expand Up @@ -920,6 +921,7 @@ python_domodule() {
fi

(
insopts -m 0644
insinto "${d}"
doins -r "${@}" || return ${?}
)
Expand Down Expand Up @@ -954,6 +956,7 @@ python_doheader() {
d=${PYTHON_INCLUDEDIR#${EPREFIX}}

(
insopts -m 0644
insinto "${d}"
doins -r "${@}" || return ${?}
)
Expand Down

0 comments on commit d2e9c4a

Please sign in to comment.