diff options
author | eeldill <elod.illes@ericsson.com> | 2018-05-02 13:51:53 +0200 |
---|---|---|
committer | eeldill <elod.illes@ericsson.com> | 2018-05-02 17:10:47 +0200 |
commit | 50d549e76cd5dd5bdd887a6d53ec34dbded4fb0a (patch) | |
tree | 219fdad8ab00862a70859c3150fe6ef7bfeab1a3 | |
parent | 0ae8e827d9ed5404afccf91b3a60ecbefeaccfab (diff) | |
download | oslo-policy-50d549e76cd5dd5bdd887a6d53ec34dbded4fb0a.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: I76f6c07bbb938d0eaeefc1bc9c8c383e2ca48e09
-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 $? |