From aa6138a726d3f72f0750b5dd0582dbd3b1ff72fa Mon Sep 17 00:00:00 2001 From: eeldill Date: Wed, 2 May 2018 14:22:36 +0200 Subject: [PATCH] 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: I391c779e4692d5de526dfda035843b8f5e267a75 --- tools/tox_install.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 $?