1 |
commit: 4c4d2d93bed9b65df736add987540e85cc9cce71 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 6 03:19:24 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 6 03:19:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4d2d93 |
7 |
|
8 |
distutils-r1.eclass: Fix sphinx check for plugins use |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
eclass/distutils-r1.eclass | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
16 |
index 355f36f59e3..f3df05eeb67 100644 |
17 |
--- a/eclass/distutils-r1.eclass |
18 |
+++ b/eclass/distutils-r1.eclass |
19 |
@@ -355,7 +355,7 @@ distutils_enable_sphinx() { |
20 |
if grep -F -q 'sphinx.ext.autodoc' "${confpy}"; then |
21 |
die "distutils_enable_sphinx: --no-autodoc passed but sphinx.ext.autodoc found in ${confpy}" |
22 |
fi |
23 |
- else |
24 |
+ elif [[ -z ${_DISTUTILS_SPHINX_PLUGINS[@]} ]]; then |
25 |
if ! grep -F -q 'sphinx.ext.autodoc' "${confpy}"; then |
26 |
die "distutils_enable_sphinx: sphinx.ext.autodoc not found in ${confpy}, pass --no-autodoc" |
27 |
fi |