From: Michał Górny Date: Fri, 6 Mar 2020 03:19:24 +0000 (+0100) Subject: distutils-r1.eclass: Fix sphinx check for plugins use X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4c4d2d93bed9b65df736add987540e85cc9cce71;p=gentoo.git distutils-r1.eclass: Fix sphinx check for plugins use Signed-off-by: Michał Górny --- diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 355f36f59e38..f3df05eeb670 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -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