summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-09-24 18:35:59 -0400
committerMike Gilbert <floppym@gentoo.org>2016-09-24 18:39:24 -0400
commit8c0b91877565ed06fef32b7e7f6345d3d15eb33e (patch)
tree762463d3e942e60f15c7323dc60647458aff6bb8 /dev-python/six
parentmedia-sound/mpg123: Removed old. (diff)
downloadgentoo-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.ebuild6
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}"
}