From bed10f856b897a11b83cee9a2e1a7059a875fafd Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 1 Feb 2017 14:39:24 +0100 Subject: [PATCH] Fix building of translated Install Guides on Mitaka This fixes https://review.openstack.org/#/c/427596 - to skip the Debconf guide if it does not exist. Change-Id: Ic78068b9ce08f878049a07e1bb7891ccf4aa58ab --- bin/doc-tools-check-languages | 7 +++++-- releasenotes/notes/docbuild-mitaka-52668f8862e88552.yaml | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/docbuild-mitaka-52668f8862e88552.yaml diff --git a/bin/doc-tools-check-languages b/bin/doc-tools-check-languages index a8ae63df..8f6bcab4 100755 --- a/bin/doc-tools-check-languages +++ b/bin/doc-tools-check-languages @@ -242,8 +242,11 @@ function handle_draft_language { ;; install-guide) for tag in $INSTALL_TAGS ; do - mv publish-docs/$language/$book-${tag} \ - publish-docs/draft/$language/$book-${tag} + # Not all tags might be build on all branches + if [[ -d publish-docs/$language/$book-${tag} ]] ; then + mv publish-docs/$language/$book-${tag} \ + publish-docs/draft/$language/$book-${tag} + fi done rmdir --ignore-fail-on-non-empty publish-docs/$language/ ;; diff --git a/releasenotes/notes/docbuild-mitaka-52668f8862e88552.yaml b/releasenotes/notes/docbuild-mitaka-52668f8862e88552.yaml new file mode 100644 index 00000000..47d6c074 --- /dev/null +++ b/releasenotes/notes/docbuild-mitaka-52668f8862e88552.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - Fix building of translations on older branches where the DebConf + Install Guide does not exist.