dev-python/jaraco-packaging: fix possible bug in docs building

Fix by Louis Sautier.

Closes: https://bugs.gentoo.org/641248
Package-Manager: Portage-2.3.19_p1, Repoman-2.3.6_p35
This commit is contained in:
Mike Gilbert
2017-12-16 16:56:34 -05:00
parent bb4c6d57f3
commit 4516aa4271

View File

@@ -35,8 +35,9 @@ S="${WORKDIR}/${MY_PN}-${PV}"
python_compile_all() {
if use doc; then
sphinx-build docs html || die "docs failed to build"
HTML_DOCS=( html/. )
cd docs || die
sphinx-build . _build/html || die
HTML_DOCS=( docs/_build/html/. )
fi
}