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 A30101384B4 for ; Sun, 22 Nov 2015 19:53:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36AE121C04A; Sun, 22 Nov 2015 19:51:26 +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 4020921C03D for ; Sun, 22 Nov 2015 19:51:25 +0000 (UTC) Received: from localhost.localdomain (d202-251.icpnet.pl [109.173.202.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 6FB07340754; Sun, 22 Nov 2015 19:51:23 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 05/29] python-utils-r1.eclass: Replace local INSDESTTREE with subshells Date: Sun, 22 Nov 2015 20:50:46 +0100 Message-Id: <1448221870-17269-6-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1448221870-17269-1-git-send-email-mgorny@gentoo.org> References: <1448221870-17269-1-git-send-email-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: 175f74a1-bcaf-43ea-9e38-f3e798648cc3 X-Archives-Hash: 75c4898bb3b3c9f0acf00885e6781c5d 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 -- 2.6.3