Browse code

Fix pip install error

If we set mutiple proxy (ip or url), pip install will
treat the second proxy as a command.
Add quotation marks around proxy.
expecially for no_proxy

Change-Id: I38ad3f083ba5155cda0e5e2b8f5df64492b7fecd

Eli Qiao authored on 2015/03/17 17:54:16
Showing 1 changed files
... ...
@@ -94,9 +94,9 @@ function pip_install {
94 94
 
95 95
     $xtrace
96 96
     $sudo_pip \
97
-        http_proxy=${http_proxy:-} \
98
-        https_proxy=${https_proxy:-} \
99
-        no_proxy=${no_proxy:-} \
97
+        http_proxy="${http_proxy:-}" \
98
+        https_proxy="${https_proxy:-}" \
99
+        no_proxy="${no_proxy:-}" \
100 100
         PIP_FIND_LINKS=$PIP_FIND_LINKS \
101 101
         $cmd_pip install \
102 102
         $@