From e615e7529ee559b1383aadb274097087916ec29f Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 24 Jan 2018 14:34:08 +0200 Subject: [PATCH] Fix issue with downloader when dependency URL ends with "/" --- docs | 2 +- platformio/downloader.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs b/docs index 2e04299a..a65d0426 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 2e04299a170b3654d9f4ec3c78392fb9202e829b +Subproject commit a65d04269399f6170e112b56aace6b368835254b diff --git a/platformio/downloader.py b/platformio/downloader.py index 4dc84a83..df9f65a2 100644 --- a/platformio/downloader.py +++ b/platformio/downloader.py @@ -48,7 +48,7 @@ class FileDownloader(object): "'", "") self._fname = self._fname.encode("utf8") else: - self._fname = url.split("/")[-1] + self._fname = [p for p in url.split("/") if p][-1] self._progressbar = None self._destination = self._fname