Better handling of PlatformIO Storage Mirrors

This commit is contained in:
Ivan Kravets
2016-02-26 19:48:30 +02:00
parent 99ddea6906
commit 8baf163684

View File

@ -103,7 +103,7 @@ class PackageManager(object):
except (requests.exceptions.ConnectionError,
requests.exceptions.ChunkedEncodingError,
exception.FDUnrecognizedStatusCode, StopIteration):
if info['url'].startswith("http://sourceforge.net"):
if not info['url'].startswith("http://dl.platformio.org"):
dlpath = self.download(
"http://dl.platformio.org/packages/%s" %
basename(info['url']), pkg_dir, info['sha1'])