diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-04 15:47:50 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-15 20:12:32 +0100 |
commit | 9f0b1cb6ccd5808f7c32d7d3513ac6fab6e4205b (patch) | |
tree | 131cf899cf87fc6b7904ff46d3aacec2937ee986 /eclass | |
parent | python-utils-r1.eclass: Add a verbose python_has_version() wrapper (diff) | |
download | gentoo-9f0b1cb6ccd5808f7c32d7d3513ac6fab6e4205b.tar.gz gentoo-9f0b1cb6ccd5808f7c32d7d3513ac6fab6e4205b.tar.bz2 gentoo-9f0b1cb6ccd5808f7c32d7d3513ac6fab6e4205b.zip |
distutils-r1.eclass: Use python_has_version in ...enable_sphinx
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 4 |
1 files changed, 1 insertions, 3 deletions
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 } |