summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreeldill <elod.illes@ericsson.com>2018-04-23 17:07:47 +0200
committerElod Illes <elod.illes@ericsson.com>2018-04-25 17:24:03 +0000
commit4d372b7de147364093d973ca3cc0f6e0b4089bff (patch)
tree18dfb6558f5dac477067ce65c5af7b4b2a8071ea
parentfb0738974824af6e1bc7d9fdf32a7c1d3ebf65fb (diff)
downloadoslo-config-4d372b7de147364093d973ca3cc0f6e0b4089bff.tar.gz
Fix sphinx-docs job for stable/pike
build-openstack-sphinx-docs jobs fails on stable/pike 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
-rwxr-xr-xtools/tox_install.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/tox_install.sh b/tools/tox_install.sh
index e61b63a..61afb49 100755
--- a/tools/tox_install.sh
+++ b/tools/tox_install.sh
@@ -26,5 +26,11 @@ 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 $?