From 8b5d3cf3df65682f94a1885ef71d2fb31bdfb3ba Mon Sep 17 00:00:00 2001 From: Arata Notsu Date: Thu, 17 Oct 2013 21:42:49 +0900 Subject: [PATCH] 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 --- stack.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index aa0efea487..625eb5f956 100755 --- a/stack.sh +++ b/stack.sh @@ -588,7 +588,9 @@ echo_summary "Installing package prerequisites" source $TOP_DIR/tools/install_prereqs.sh # Configure an appropriate python environment -$TOP_DIR/tools/install_pip.sh +if [[ "$OFFLINE" != "True" ]]; then + $TOP_DIR/tools/install_pip.sh +fi # Do the ugly hacks for borken packages and distros $TOP_DIR/tools/fixup_stuff.sh