Merge "Don't uninstall pip packages if OFFLINE=True"

This commit is contained in:
Jenkins 2017-08-15 02:17:27 +00:00 committed by Gerrit Code Review
commit ac1a6aab2c

View File

@ -346,6 +346,9 @@ function pip_install {
}
function pip_uninstall {
# Skip uninstall if offline
[[ "${OFFLINE}" = "True" ]] && return
local name=$1
if [[ -n ${PIP_VIRTUAL_ENV:=} && -d ${PIP_VIRTUAL_ENV} ]]; then
local cmd_pip=$PIP_VIRTUAL_ENV/bin/pip