From 2afbe2a64bbe64580f96fdecb9b13daa05c0a2d1 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 15 Dec 2015 20:25:59 +0200 Subject: [PATCH] Better handling of upload targets --- platformio/platforms/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platformio/platforms/base.py b/platformio/platforms/base.py index 0824b4ca..88d5377d 100644 --- a/platformio/platforms/base.py +++ b/platformio/platforms/base.py @@ -366,8 +366,7 @@ class BasePlatform(object): self.PACKAGES[pkg_name]['default'] = True # enable upload tools for upload targets - if (set(["upload", "uploadlazy", "uploadeep", "program"]) - & set(targets)): + if any(["upload" in t for t in targets] + ["program" in targets]): for _name, _opts in self.PACKAGES.iteritems(): if _opts.get("alias") == "uploader": self.PACKAGES[_name]['default'] = True