summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreeldill <elod.illes@ericsson.com>2018-04-27 15:17:48 +0200
committereeldill <elod.illes@ericsson.com>2018-04-27 15:18:23 +0200
commita009e7c86901473ac2273cb9ba604dc2a6b579d3 (patch)
treec8e0c870faba000f576b9206f6caa2cc079468b6
parent8adf9b1f0d69dca7372b967ef4f894487f1a9d64 (diff)
downloadoslo-concurrency-a009e7c86901473ac2273cb9ba604dc2a6b579d3.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: Ic011be44d4852a293d7adc0ef25b7e498e4b5d20
-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 $?