commit: 4c4d2d93bed9b65df736add987540e85cc9cce71
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 6 03:19:24 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 6 03:19:24 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4d2d93
distutils-r1.eclass: Fix sphinx check for plugins use
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
eclass/distutils-r1.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 355f36f59e3..f3df05eeb67 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