mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 18:44:27 +02:00
Better handling of PlatformIO Storage Mirrors
This commit is contained in:
@@ -103,7 +103,7 @@ class PackageManager(object):
|
|||||||
except (requests.exceptions.ConnectionError,
|
except (requests.exceptions.ConnectionError,
|
||||||
requests.exceptions.ChunkedEncodingError,
|
requests.exceptions.ChunkedEncodingError,
|
||||||
exception.FDUnrecognizedStatusCode, StopIteration):
|
exception.FDUnrecognizedStatusCode, StopIteration):
|
||||||
if info['url'].startswith("http://sourceforge.net"):
|
if not info['url'].startswith("http://dl.platformio.org"):
|
||||||
dlpath = self.download(
|
dlpath = self.download(
|
||||||
"http://dl.platformio.org/packages/%s" %
|
"http://dl.platformio.org/packages/%s" %
|
||||||
basename(info['url']), pkg_dir, info['sha1'])
|
basename(info['url']), pkg_dir, info['sha1'])
|
||||||
|
Reference in New Issue
Block a user