Browse code

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

Jenkins authored on 2017/08/15 11:17:27
Showing 1 changed files
... ...
@@ -346,6 +346,9 @@ function pip_install {
346 346
 }
347 347
 
348 348
 function pip_uninstall {
349
+    # Skip uninstall if offline
350
+    [[ "${OFFLINE}" = "True" ]] && return
351
+
349 352
     local name=$1
350 353
     if [[ -n ${PIP_VIRTUAL_ENV:=} && -d ${PIP_VIRTUAL_ENV} ]]; then
351 354
         local cmd_pip=$PIP_VIRTUAL_ENV/bin/pip