Browse code

Allow overriding USE_GET_PIP via env vars

devstack-gate wants to pre-cache and then use get-pip, but we can't
throw the flag currently. Make the flag default settable via env vars.

Change-Id: I661b52670b6ce494666cbdd611e4eee6b96c8321
Partial-Bug: #1254275

Monty Taylor authored on 2013/11/24 03:02:45
Showing 1 changed files
... ...
@@ -26,6 +26,7 @@ FILES=$TOP_DIR/files
26 26
 
27 27
 # Handle arguments
28 28
 
29
+USE_GET_PIP=${USE_GET_PIP:-0}
29 30
 INSTALL_PIP_VERSION=${INSTALL_PIP_VERSION:-"1.4.1"}
30 31
 while [[ -n "$1" ]]; do
31 32
     case $1 in
... ...
@@ -63,7 +64,7 @@ function get_versions() {
63 63
 function install_get_pip() {
64 64
     if [[ ! -r $FILES/get-pip.py ]]; then
65 65
         (cd $FILES; \
66
-            curl $PIP_GET_PIP_URL; \
66
+            curl -O $PIP_GET_PIP_URL; \
67 67
         )
68 68
     fi
69 69
     sudo python $FILES/get-pip.py