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 1D1291384B4 for ; Sat, 28 Nov 2015 19:09:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18C66E08AF; Sat, 28 Nov 2015 19:09:51 +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 41D62E0788 for ; Sat, 28 Nov 2015 19:09:50 +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 395883408EC for ; Sat, 28 Nov 2015 19:09:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 24DAAA7A for ; Sat, 28 Nov 2015 19:09:47 +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: <1448737746.0951efe8cb419d55cddfd7dee77bc538bf9cc25b.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master 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: 0951efe8cb419d55cddfd7dee77bc538bf9cc25b X-VCS-Branch: master Date: Sat, 28 Nov 2015 19:09:47 +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: 4a6f107b-9ca7-4b30-b8f6-ea2d4ae88964 X-Archives-Hash: 7196dcbe71d9748b537786643593ac47 commit: 0951efe8cb419d55cddfd7dee77bc538bf9cc25b Author: Michał Górny gentoo org> AuthorDate: Wed Nov 18 18:44:22 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Nov 28 19:09:06 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0951efe8 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 cb70ee8..f27fdf0 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -805,10 +805,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}" } @@ -836,10 +836,10 @@ python_doheader() { d=${PYTHON_INCLUDEDIR#${EPREFIX}} - local INSDESTTREE - - insinto "${d}" - doins -r "${@}" || die + ( + insinto "${d}" + doins -r "${@}" || die + ) } # @FUNCTION: python_wrapper_setup