mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 23:28:08 -07:00
dev-python/six: Ensure PYTHON exists before calling python_get_sitedir
Package-Manager: portage-2.2.26_p10
This commit is contained in:
@@ -32,8 +32,8 @@ PATCHES=(
|
||||
# pkg_setup to catch them all
|
||||
pkg_pretend() {
|
||||
six_dir_check() {
|
||||
local dir="${ROOT}"/$(python_get_sitedir)/six
|
||||
type -p "${PYTHON}" > /dev/null || return 0
|
||||
local dir="${ROOT}"/$(python_get_sitedir)/six
|
||||
[[ -d "${dir}" ]] \
|
||||
&& die "${PN} doesn't work if ${dir} is a directory #546730"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user