commit: 24f3b61dbd6db8a41c01dc5ea8bd5bf4b87704b2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org> AuthorDate: Fri Nov 20 11:00:44 2015 +0000 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> CommitDate: Fri Nov 20 11:29:21 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24f3b61d
dev-python/six: Break if SITEDIR/six is a dir Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=546730 Package-Manager: portage-2.2.25 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> dev-python/six/six-1.10.0.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-python/six/six-1.10.0.ebuild b/dev-python/six/six-1.10.0.ebuild index 9faef64..ed0c5b8 100644 --- a/dev-python/six/six-1.10.0.ebuild +++ b/dev-python/six/six-1.10.0.ebuild @@ -26,6 +26,15 @@ PATCHES=( "${FILESDIR}"/1.9.0-mapping.patch ) +pkg_pretend() { + six_dir_check() { + local dir="${ROOT}"/$(python_get_sitedir)/six + [[ -d "${dir}" ]] \ + && die "${PN} doesn't work if ${dir} is a directory #546730" + } + python_foreach_impl six_dir_check +} + python_prepare_all() { # https://bitbucket.org/gutworth/six/issues/139/ sed \
