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
This commit is contained in:
Andreas Jaeger 2017-02-01 14:39:24 +01:00
parent 91d96f6788
commit bed10f856b
2 changed files with 9 additions and 2 deletions

View File

@ -242,8 +242,11 @@ function handle_draft_language {
;; ;;
install-guide) install-guide)
for tag in $INSTALL_TAGS ; do for tag in $INSTALL_TAGS ; do
# Not all tags might be build on all branches
if [[ -d publish-docs/$language/$book-${tag} ]] ; then
mv publish-docs/$language/$book-${tag} \ mv publish-docs/$language/$book-${tag} \
publish-docs/draft/$language/$book-${tag} publish-docs/draft/$language/$book-${tag}
fi
done done
rmdir --ignore-fail-on-non-empty publish-docs/$language/ rmdir --ignore-fail-on-non-empty publish-docs/$language/
;; ;;

View File

@ -0,0 +1,4 @@
---
fixes:
- Fix building of translations on older branches where the DebConf
Install Guide does not exist.