dev-python/six: Ensure PYTHON exists before calling python_get_sitedir
authorMike Gilbert <floppym@gentoo.org>
Mon, 7 Dec 2015 15:47:53 +0000 (10:47 -0500)
committerMike Gilbert <floppym@gentoo.org>
Mon, 7 Dec 2015 15:48:10 +0000 (10:48 -0500)
Package-Manager: portage-2.2.26_p10

dev-python/six/six-1.10.0.ebuild

index ffbb168d3c246628216188c8790852f616c62b7a..810d8156f5fe76ee3698241830a11ddba2744811 100644 (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"
        }