Changeset bd16849 in rtems-source-builder


Ignore:
Timestamp:
Mar 30, 2015, 3:30:56 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
95854a9
Parents:
3237c8e
Message:

sb: Update the downloader for 2.7.8 and earlier without a context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/download.py

    r3237c8e rbd16849  
    329329                    import ssl
    330330                    _ssl_context = ssl._create_unverified_context()
     331                    _in = urllib2.urlopen(url, context = _ssl_context)
    331332                except:
    332                     pass
    333                 _in = urllib2.urlopen(url, context = _ssl_context)
     333                    _ssl_context = None
     334                if _ssl_context is None:
     335                    _in = urllib2.urlopen(url)
    334336                if url != _in.geturl():
    335337                    log.notice(' redirect: %s' % (_in.geturl()))
Note: See TracChangeset for help on using the changeset viewer.