summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rwxr-xr-xproject.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/project.py b/project.py
index ae2bf6f3..8a38c584 100755
--- a/project.py
+++ b/project.py
@@ -2217,13 +2217,17 @@ class Project(object):
2217 cmd += ['--continue-at', '%d' % (size,)] 2217 cmd += ['--continue-at', '%d' % (size,)]
2218 else: 2218 else:
2219 platform_utils.remove(tmpPath) 2219 platform_utils.remove(tmpPath)
2220 if 'http_proxy' in os.environ and 'darwin' == sys.platform: 2220 with GetUrlCookieFile(srcUrl, quiet) as (cookiefile, proxy):
2221 cmd += ['--proxy', os.environ['http_proxy']]
2222 with GetUrlCookieFile(srcUrl, quiet) as (cookiefile, _proxy):
2223 if cookiefile: 2221 if cookiefile:
2224 cmd += ['--cookie', cookiefile, '--cookie-jar', cookiefile] 2222 cmd += ['--cookie', cookiefile, '--cookie-jar', cookiefile]
2225 if srcUrl.startswith('persistent-'): 2223 if proxy:
2226 srcUrl = srcUrl[len('persistent-'):] 2224 cmd += ['--proxy', proxy]
2225 elif 'http_proxy' in os.environ and 'darwin' == sys.platform:
2226 cmd += ['--proxy', os.environ['http_proxy']]
2227 if srcUrl.startswith('persistent-https'):
2228 srcUrl = 'http' + srcUrl[len('persistent-https'):]
2229 elif srcUrl.startswith('persistent-http'):
2230 srcUrl = 'http' + srcUrl[len('persistent-http'):]
2227 cmd += [srcUrl] 2231 cmd += [srcUrl]
2228 2232
2229 if IsTrace(): 2233 if IsTrace():