Fix the doc CI failure

CI job now uses pip >= 10.0.0 to install the package.

In pip >= 10.0.0, if the package name is missing, the command
"pip install -U" returns error, but in pip < 10.0.0 it
just logs warning.

So this patch make sure the package name exists first.

Change-Id: Id900640a7133f837ece8c6c0e7d2e4c17665a53d
(cherry picked from commit ad10c32a89)
This commit is contained in:
wangxiyuan 2018-04-20 16:43:19 +08:00 committed by Lance Bragstad
parent fb86baedf0
commit e6b0688f35
1 changed files with 3 additions and 1 deletions

View File

@ -26,5 +26,7 @@ pip install -c"$localfile" openstack-requirements
# install will be constrained and we need to unconstrain it.
edit-constraints "$localfile" -- "$CLIENT_NAME"
pip install -c"$localfile" -U "$@"
if [[ -n "$@" ]]; then
pip install -c"$localfile" -U "$@"
fi
exit $?