diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-10-03 11:31:37 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-10-03 11:32:49 -0400 |
commit | 016c65498fd675d39b641087a178094c88b81cb2 (patch) | |
tree | a1c4114c0c2c82f4ad9dc30707c05da29bbb9a71 /dev-python | |
parent | www-client/firefox: remove old, security bug 594616 (diff) | |
download | gentoo-016c65498fd675d39b641087a178094c88b81cb2.tar.gz gentoo-016c65498fd675d39b641087a178094c88b81cb2.tar.bz2 gentoo-016c65498fd675d39b641087a178094c88b81cb2.zip |
dev-python/six: cd "${HOME}" in pkg_preinst
Package-Manager: portage-2.3.1_p4_p808957
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/six/six-1.10.0.ebuild | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/dev-python/six/six-1.10.0.ebuild b/dev-python/six/six-1.10.0.ebuild index 29971c258893..41801a1de55c 100644 --- a/dev-python/six/six-1.10.0.ebuild +++ b/dev-python/six/six-1.10.0.ebuild @@ -58,8 +58,11 @@ python_install_all() { distutils-r1_python_install_all } +# Remove pkg_preinst in the next version bump pkg_preinst() { - # Remove this in the next version bump + # https://bugs.gentoo.org/585146 + cd "${HOME}" || die + _cleanup() { local pyver=$("${PYTHON}" -c "from distutils.sysconfig import get_python_version; print(get_python_version())") local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info" @@ -68,10 +71,5 @@ pkg_preinst() { rm -r "${egginfo}" || die "Failed to remove egg-info directory" fi } - # https://bugs.gentoo.org/585146 - local tmpdir="$(mktemp -d)" - [[ -n ${tmpdir} ]] || die - cd "${tmpdir}" || die python_foreach_impl _cleanup - rmdir "${tmpdir}" } |