diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-09-24 18:35:59 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-09-24 18:39:24 -0400 |
commit | 8c0b91877565ed06fef32b7e7f6345d3d15eb33e (patch) | |
tree | 762463d3e942e60f15c7323dc60647458aff6bb8 /dev-python/six | |
parent | media-sound/mpg123: Removed old. (diff) | |
download | gentoo-8c0b91877565ed06fef32b7e7f6345d3d15eb33e.tar.gz gentoo-8c0b91877565ed06fef32b7e7f6345d3d15eb33e.tar.bz2 gentoo-8c0b91877565ed06fef32b7e7f6345d3d15eb33e.zip |
dev-python/six: run pkg_preinst in a temporary directory
Package-Manager: portage-2.3.1_p4_p56819
Diffstat (limited to 'dev-python/six')
-rw-r--r-- | dev-python/six/six-1.10.0.ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dev-python/six/six-1.10.0.ebuild b/dev-python/six/six-1.10.0.ebuild index 753971c4bb4d..29971c258893 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}" } |