summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreeldill <elod.illes@ericsson.com>2018-04-27 19:00:17 +0200
committereeldill <elod.illes@ericsson.com>2018-05-02 13:43:38 +0200
commitbab0ce3d346b82b0b7d8cf92657a87219d9d8fd7 (patch)
tree14482fffa7fbacfd5450ab554b867164673a7872
parent582c00cd418998d81bcb1b114f5a9a4a9f85d1a4 (diff)
downloadoslo-log-bab0ce3d346b82b0b7d8cf92657a87219d9d8fd7.tar.gz
Fix sphinx-docs job for stable branch
build-openstack-sphinx-docs jobs fail on all 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: I400d4acf93ab634683cd9c4b05db7c79a51810be
-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 $?