From 8c0b91877565ed06fef32b7e7f6345d3d15eb33e Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 24 Sep 2016 18:35:59 -0400 Subject: 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(-) (limited to 'dev-python/six') diff --git a/dev-python/six/six-1.10.0.ebuild b/dev-python/six/six-1.10.0.ebuild index 753971c4bb4..29971c25889 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}" } -- cgit v1.2.1