From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3DEF1138330 for ; Sat, 24 Sep 2016 22:39:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E37B21C038; Sat, 24 Sep 2016 22:39:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D21FE21C038 for ; Sat, 24 Sep 2016 22:39:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5E6D9340AE2 for ; Sat, 24 Sep 2016 22:39:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 74FFB2481 for ; Sat, 24 Sep 2016 22:39:28 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1474756764.8c0b91877565ed06fef32b7e7f6345d3d15eb33e.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/six/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/six/six-1.10.0.ebuild X-VCS-Directories: dev-python/six/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 8c0b91877565ed06fef32b7e7f6345d3d15eb33e X-VCS-Branch: master Date: Sat, 24 Sep 2016 22:39:28 +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: 85b820ed-a3bd-48b9-a9ea-3aa6ebc07489 X-Archives-Hash: 4cb802dead9d2968ddf88c0690686924 commit: 8c0b91877565ed06fef32b7e7f6345d3d15eb33e Author: Mike Gilbert gentoo org> AuthorDate: Sat Sep 24 22:35:59 2016 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sat Sep 24 22:39:24 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c0b9187 dev-python/six: run pkg_preinst in a temporary directory Package-Manager: portage-2.3.1_p4_p56819 dev-python/six/six-1.10.0.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-python/six/six-1.10.0.ebuild b/dev-python/six/six-1.10.0.ebuild index 753971c..29971c2 100644 --- a/dev-python/six/six-1.10.0.ebuild +++ b/dev-python/six/six-1.10.0.ebuild @@ -68,6 +68,10 @@ pkg_preinst() { rm -r "${egginfo}" || die "Failed to remove egg-info directory" fi } - cd / # Bug 585146 + # https://bugs.gentoo.org/585146 + local tmpdir="$(mktemp -d)" + [[ -n ${tmpdir} ]] || die + cd "${tmpdir}" || die python_foreach_impl _cleanup + rmdir "${tmpdir}" }