From 9f0b1cb6ccd5808f7c32d7d3513ac6fab6e4205b Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 4 Feb 2022 15:47:50 +0100 Subject: distutils-r1.eclass: Use python_has_version in ...enable_sphinx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'eclass') diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 9e7970fc2833..f0059d2756bf 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -424,11 +424,9 @@ distutils_enable_sphinx() { python_check_deps() { use doc || return 0 - local hasv_args=( -b ) - [[ ${EAPI} == 6 ]] && hasv_args=( --host-root ) local p for p in dev-python/sphinx "${_DISTUTILS_SPHINX_PLUGINS[@]}"; do - has_version "${hasv_args[@]}" "${p}[${PYTHON_USEDEP}]" || + python_has_version "${p}[${PYTHON_USEDEP}]" || return 1 done } -- cgit v1.2.3-65-gdbad