From 45b2cde3b3b1a44c0a6ad314189de4204661af34 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 11 May 2018 11:32:20 +0100 Subject: [PATCH] Fix sphinx-docs job for stable branch build-openstack-sphinx-docs jobs fails 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: I1c9efa640301427dc0497897eab90fd391baa29c Signed-off-by: Stephen Finucane --- tools/tox_install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/tox_install.sh b/tools/tox_install.sh index 2fec26fd..12fd57fa 100755 --- a/tools/tox_install.sh +++ b/tools/tox_install.sh @@ -55,5 +55,10 @@ fi # install will be constrained and we need to unconstrain it. edit-constraints $localfile -- $LIB_NAME "-e $LIB_LOCATION" +if [ -z "$@" ]; then + echo "No packages to be installed." + exit 0 +fi + $install_cmd -U $* exit $?