From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 48AC91388C2 for ; Thu, 26 Nov 2015 22:35:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C35221C081; Thu, 26 Nov 2015 22:35:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 95ADC21C07E for ; Thu, 26 Nov 2015 22:35:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 74F77340545 for ; Thu, 26 Nov 2015 22:35:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5356F612 for ; Thu, 26 Nov 2015 22:35:27 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1448577163.e0ba7f54bbc5d7c9b888b783ab32a02fc62f0701.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:python-eapi6 commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/python-utils-r1.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e0ba7f54bbc5d7c9b888b783ab32a02fc62f0701 X-VCS-Branch: python-eapi6 Date: Thu, 26 Nov 2015 22:35:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6541dce0-16b4-4ccf-83f6-37322a14ecd1 X-Archives-Hash: 62f2f15e1553be8671a92df2f9518050 commit: e0ba7f54bbc5d7c9b888b783ab32a02fc62f0701 Author: Michał Górny gentoo org> AuthorDate: Wed Nov 18 18:44:22 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Nov 26 22:32:43 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0ba7f54 python-utils-r1.eclass: Replace local INSDESTTREE with subshells Replace the 'local INSDESTTREE' hacks (which are PMS-valid yet deprecated) with safer subshells. eclass/python-utils-r1.eclass | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 1cf06e2..4e493ac 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -802,10 +802,10 @@ python_domodule() { d=${PYTHON_SITEDIR#${EPREFIX}}/${python_moduleroot} fi - local INSDESTTREE - - insinto "${d}" - doins -r "${@}" || die + ( + insinto "${d}" + doins -r "${@}" || die + ) python_optimize "${ED}/${d}" } @@ -833,10 +833,10 @@ python_doheader() { d=${PYTHON_INCLUDEDIR#${EPREFIX}} - local INSDESTTREE - - insinto "${d}" - doins -r "${@}" || die + ( + insinto "${d}" + doins -r "${@}" || die + ) } # @FUNCTION: python_wrapper_setup