summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-03-06 04:19:24 +0100
committerMichał Górny <mgorny@gentoo.org>2020-03-06 04:19:24 +0100
commit4c4d2d93bed9b65df736add987540e85cc9cce71 (patch)
tree2f062c79f68cf585bd98ee934d478ab8e9402b91 /eclass
parentdev-libs/libappindicator: Drop slot 2 (diff)
downloadgentoo-4c4d2d93bed9b65df736add987540e85cc9cce71.tar.gz
gentoo-4c4d2d93bed9b65df736add987540e85cc9cce71.tar.bz2
gentoo-4c4d2d93bed9b65df736add987540e85cc9cce71.zip
distutils-r1.eclass: Fix sphinx check for plugins use
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass2
1 files changed, 1 insertions, 1 deletions
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