commit:     5509b98d17a202b7afca820fc9c8c6b768b34753
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 28 17:55:31 2019 +0000
Commit:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Sat Sep 28 17:55:58 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5509b98d

app-admin/glance: git sources cannot build docs (missing files)

Fixes: https://bugs.gentoo.org/695686

Package-Manager: Portage-2.3.69, Repoman-2.3.17
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>

 app-admin/glance/glance-2019.1.9999.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app-admin/glance/glance-2019.1.9999.ebuild 
b/app-admin/glance/glance-2019.1.9999.ebuild
index 2647706b888..3c7b073c2f8 100644
--- a/app-admin/glance/glance-2019.1.9999.ebuild
+++ b/app-admin/glance/glance-2019.1.9999.ebuild
@@ -121,7 +121,9 @@ python_prepare_all() {
 }
 
 python_compile_all() {
-       use doc && "${PYTHON}" setup.py build_sphinx
+       if [ ! -z ${EGIT_BRANCH+x} ]; then
+               use doc && "${PYTHON}" setup.py build_sphinx
+       fi
 }
 
 python_install_all() {

Reply via email to