mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
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@gentoo.org>
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user