Better handling of upload targets

This commit is contained in:
Ivan Kravets
2015-12-15 20:25:59 +02:00
parent a5878c5544
commit 2afbe2a64b

View File

@ -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