Fix sphinx-docs job for stable branch

build-openstack-sphinx-docs jobs fails on stable branches due to the new
pip version 10 introduces some previously Warning as Error: in case of
calling "pip install" without any package name, the command fails.
tox_install.sh is called during docs job without any package passed to pip.

Change-Id: I646fcc181d1129ca96d02a90036ee32b80d8f778
This commit is contained in:
eeldill 2018-04-23 17:07:47 +02:00
parent fe08d77191
commit 63ec59ebe5
1 changed files with 5 additions and 0 deletions

View File

@ -26,5 +26,10 @@ pip install -c"$localfile" openstack-requirements
# install will be constrained and we need to unconstrain it.
edit-constraints "$localfile" -- "$CLIENT_NAME"
if [ -z "$@" ]; then
echo "No packages to be installed."
exit 0
fi
pip install -c"$localfile" -U "$@"
exit $?