summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/download.py
diff options
context:
space:
mode:
Diffstat (limited to 'source-builder/sb/download.py')
-rw-r--r--source-builder/sb/download.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/source-builder/sb/download.py b/source-builder/sb/download.py
index 16aa251..032e3ae 100644
--- a/source-builder/sb/download.py
+++ b/source-builder/sb/download.py
@@ -324,7 +324,13 @@ def _http_downloader(url, local, config, opts):
try:
try:
_in = None
- _in = urllib2.urlopen(url)
+ _ssl_context = None
+ try:
+ import ssl
+ _ssl_context = ssl._create_unverified_context()
+ except:
+ pass
+ _in = urllib2.urlopen(url, context = _ssl_context)
if url != _in.geturl():
log.notice(' redirect: %s' % (_in.geturl()))
_out = open(path.host(local), 'wb')