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
This commit is contained in:
Arata Notsu 2013-10-17 21:42:49 +09:00
parent af0912b512
commit 8b5d3cf3df

@ -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