dev-python/six: Ensure PYTHON exists before calling python_get_sitedir

Package-Manager: portage-2.2.26_p10
This commit is contained in:
Mike Gilbert
2015-12-07 10:47:53 -05:00
parent 8f4b826f33
commit def081f761

View File

@@ -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"
}