diff options
author | eeldill <elod.illes@ericsson.com> | 2018-04-27 18:50:01 +0200 |
---|---|---|
committer | eeldill <elod.illes@ericsson.com> | 2018-04-27 18:50:36 +0200 |
commit | c4b6104b84879f93ae99dfd8b1f788b7deae87f7 (patch) | |
tree | a289bd7c9175e4fe306166eb3909d4cc36cbe9f4 | |
parent | f2729cd36f8694a6ec53a0e700599ddf4427440d (diff) | |
download | oslo-i18n-c4b6104b84879f93ae99dfd8b1f788b7deae87f7.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: If8e078e69ce74b4da020702c8ed790dd2318d155
-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 $? |