Browse code

Do not install pip when OFFLINE=True

install_pip.sh trys to fetch pip from the internet even if
OFFLINE=True. It causes stack.sh to fail if the environment
is actually disconnected from the internet. With this patch,
stack.sh skips install_pip.sh if OFFLINE=True.

Change-Id: Ica9e5cfa0a4ee684c05393896c2fd6ddbd9ccd06
Closes-Bug: 1240956

Arata Notsu authored on 2013/10/17 21:42:49
Showing 1 changed files
... ...
@@ -588,7 +588,9 @@ echo_summary "Installing package prerequisites"
588 588
 source $TOP_DIR/tools/install_prereqs.sh
589 589
 
590 590
 # Configure an appropriate python environment
591
-$TOP_DIR/tools/install_pip.sh
591
+if [[ "$OFFLINE" != "True" ]]; then
592
+    $TOP_DIR/tools/install_pip.sh
593
+fi
592 594
 
593 595
 # Do the ugly hacks for borken packages and distros
594 596
 $TOP_DIR/tools/fixup_stuff.sh