mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Use HTTP mirror for Package Manager in case with SSL errors // Resolve #645
This commit is contained in:
@ -7,6 +7,8 @@ PlatformIO 2.0
|
|||||||
2.9.2 (2016-??-??)
|
2.9.2 (2016-??-??)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Use HTTP mirror for Package Manager in case with SSL errors
|
||||||
|
(`issue #645 <https://github.com/platformio/platformio/issues/645>`_)
|
||||||
* Fixed bug with ``env_default`` when ``pio run -e`` is used
|
* Fixed bug with ``env_default`` when ``pio run -e`` is used
|
||||||
|
|
||||||
2.9.1 (2016-04-30)
|
2.9.1 (2016-04-30)
|
||||||
|
@ -102,6 +102,7 @@ class PackageManager(object):
|
|||||||
dlpath = self.download(info['url'], pkg_dir, info['sha1'])
|
dlpath = self.download(info['url'], pkg_dir, info['sha1'])
|
||||||
except (requests.exceptions.ConnectionError,
|
except (requests.exceptions.ConnectionError,
|
||||||
requests.exceptions.ChunkedEncodingError,
|
requests.exceptions.ChunkedEncodingError,
|
||||||
|
requests.exceptions.SSLError,
|
||||||
exception.FDUnrecognizedStatusCode, StopIteration):
|
exception.FDUnrecognizedStatusCode, StopIteration):
|
||||||
if not info['url'].startswith("http://dl.platformio.org"):
|
if not info['url'].startswith("http://dl.platformio.org"):
|
||||||
dlpath = self.download(
|
dlpath = self.download(
|
||||||
|
Reference in New Issue
Block a user