diff options
author | eeldill <elod.illes@ericsson.com> | 2018-04-27 18:30:03 +0200 |
---|---|---|
committer | eeldill <elod.illes@ericsson.com> | 2018-04-27 18:30:39 +0200 |
commit | 9c0e9dc315b1b3a56222d613d60593403865ee26 (patch) | |
tree | 46a26dd6f7f0f66ca1400a5eec6012232ed24063 | |
parent | d07dfc5d16427646a750912db9ff593e0f507f21 (diff) | |
download | oslo-db-9c0e9dc315b1b3a56222d613d60593403865ee26.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: Idf418fb327475ddf167db8a85d6eff6456ca8c9b
-rwxr-xr-x | tools/tox_install.sh | 5 |
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 $? |