commit:     def081f761fa12604a4618fab01fc192320e6360
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  7 15:47:53 2015 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Dec  7 15:48:10 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=def081f7

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

Package-Manager: portage-2.2.26_p10

 dev-python/six/six-1.10.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/six/six-1.10.0.ebuild b/dev-python/six/six-1.10.0.ebuild
index ffbb168..810d815 100644
--- a/dev-python/six/six-1.10.0.ebuild
+++ b/dev-python/six/six-1.10.0.ebuild
@@ -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"
        }

Reply via email to