From 8baf163684275b28a6f9ecc607bc6b72f792a905 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 26 Feb 2016 19:48:30 +0200 Subject: [PATCH] Better handling of PlatformIO Storage Mirrors --- platformio/pkgmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/pkgmanager.py b/platformio/pkgmanager.py index c421a443..83f4f4b7 100644 --- a/platformio/pkgmanager.py +++ b/platformio/pkgmanager.py @@ -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'])