summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreeldill <elod.illes@ericsson.com>2018-05-02 13:21:58 +0200
committereeldill <elod.illes@ericsson.com>2018-05-02 13:22:25 +0200
commitc36693bf96a1e50320370963381c5b83a1a0da72 (patch)
tree3a05dab59a4c1dbe1dcd114c13163ae8d2bc5281
parentf4b6914db02e6bcf0de4a97bbc3dc85dd6e06d91 (diff)
downloadoslo-context-c36693bf96a1e50320370963381c5b83a1a0da72.tar.gz
Fix sphinx-docs job for stable branch
build-openstack-sphinx-docs jobs fail 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: I2027d59faacd0c00bc3ebeb15782eacfc4a3ce9f
-rwxr-xr-xtools/tox_install.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/tox_install.sh b/tools/tox_install.sh
index e61b63a..05c58b3 100755
--- a/tools/tox_install.sh
+++ b/tools/tox_install.sh
@@ -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 $?