mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +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
|
self.PACKAGES[pkg_name]['default'] = True
|
||||||
|
|
||||||
# enable upload tools for upload targets
|
# enable upload tools for upload targets
|
||||||
if (set(["upload", "uploadlazy", "uploadeep", "program"])
|
if any(["upload" in t for t in targets] + ["program" in targets]):
|
||||||
& set(targets)):
|
|
||||||
for _name, _opts in self.PACKAGES.iteritems():
|
for _name, _opts in self.PACKAGES.iteritems():
|
||||||
if _opts.get("alias") == "uploader":
|
if _opts.get("alias") == "uploader":
|
||||||
self.PACKAGES[_name]['default'] = True
|
self.PACKAGES[_name]['default'] = True
|
||||||
|
Reference in New Issue
Block a user