mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Better handling of upload targets
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user