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 DA0741388C2 for ; Thu, 19 Nov 2015 15:14:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE15AE07B2; Thu, 19 Nov 2015 15:14:12 +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 24290E07B2 for ; Thu, 19 Nov 2015 15:14:12 +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 1927E3409E2 for ; Thu, 19 Nov 2015 15:14:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9ADA8FFB for ; Thu, 19 Nov 2015 15:14:07 +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: <1447946015.0726ae32264084f4bd49508f20674ebbff0c3ee8.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: 0726ae32264084f4bd49508f20674ebbff0c3ee8 X-VCS-Branch: python-eapi6 Date: Thu, 19 Nov 2015 15:14:07 +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: ed479caa-b6ed-433b-b9c5-98e4f6a66dba X-Archives-Hash: 309d27746935031e4d0815b511852592 commit: 0726ae32264084f4bd49508f20674ebbff0c3ee8 Author: Michał Górny gentoo org> AuthorDate: Wed Nov 18 18:44:22 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Nov 19 15:13:35 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0726ae32 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 9f3c750..e690e09 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