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