summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreeldill <elod.illes@ericsson.com>2018-05-02 13:46:56 +0200
committereeldill <elod.illes@ericsson.com>2018-05-03 13:01:47 +0200
commitefa2539ec9206267e0c4fba8d521b55aa6bba97e (patch)
treed509366109d13b0f9a31895419f2de2815d5a858
parent74208402c6cadc0fb46379e2f7122eade7998883 (diff)
downloadoslo-middleware-efa2539ec9206267e0c4fba8d521b55aa6bba97e.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: Iefdeebddbb12a9d2acba721afd7f1df9c51dffe6
-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 $?