distutils-r1.eclass: Fix sphinx check for plugins use
authorMichał Górny <mgorny@gentoo.org>
Fri, 6 Mar 2020 03:19:24 +0000 (04:19 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 6 Mar 2020 03:19:24 +0000 (04:19 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/distutils-r1.eclass

index 355f36f59e38e8dad786beb7f800bdbc75509ad7..f3df05eeb67029bd2e365421c09ff963d6736cdf 100644 (file)
@@ -355,7 +355,7 @@ distutils_enable_sphinx() {
                        if grep -F -q 'sphinx.ext.autodoc' "${confpy}"; then
                                die "distutils_enable_sphinx: --no-autodoc passed but sphinx.ext.autodoc found in ${confpy}"
                        fi
-               else
+               elif [[ -z ${_DISTUTILS_SPHINX_PLUGINS[@]} ]]; then
                        if ! grep -F -q 'sphinx.ext.autodoc' "${confpy}"; then
                                die "distutils_enable_sphinx: sphinx.ext.autodoc not found in ${confpy}, pass --no-autodoc"
                        fi