Workaround SSL cert issues, enable python 3
authorBoris Zanin <boris.zanin@mobica.com>
Mon, 13 Feb 2017 09:47:28 +0000 (10:47 +0100)
committerPyry Haulos <phaulos@google.com>
Fri, 17 Feb 2017 16:36:42 +0000 (11:36 -0500)
commit5cda75b7a88f83cfa678ac027ed7c4ab2441d039
tree07fe97c584704f4c42e7a244506251658f7b9de1
parentedb67c31bf27457e735f66abf1de0427a69e9071
Workaround SSL cert issues, enable python 3

 * The script command line switch --insecure added to bypass SSL
   certificate validity checks. Though bypassing is not recommended,
   sometimes the issue can be resolved on the remote side only,
   which we have no control over. For example please see
   https://sourceforge.net/p/forge/site-support/14336/
   The parameter is supported for pythons 2.7.9 and 3.4.3 and newer,
   due to older versions of urlopen do not support context parameter

 * Minor changes allow to run fetch_sources.py under both v2 and v3
   pythons. Changes required due to python 3 prohibits statement-style
   usage for print and forces print statements to be converted into
   functions. Also urlopen() is in library urllib.request in python 3

Components: Framework

VK-GL-CTS Issue #64

Change-Id: If4354332ea19878f8f72352e2df5cac9ee254ac6
external/fetch_sources.py
scripts/build/common.py