Allow framework without package

This commit is contained in:
Ivan Kravets
2016-12-15 13:05:55 +02:00
parent e9f15ba034
commit 403da8e22b

View File

@ -460,8 +460,9 @@ class PlatformBase(PlatformPackagesMixin, PlatformRunMixin):
framework = framework.lower().strip() framework = framework.lower().strip()
if not framework or framework not in self.frameworks: if not framework or framework not in self.frameworks:
continue continue
_pkg_name = self.frameworks[framework]['package'] _pkg_name = self.frameworks[framework].get("package")
self.packages[_pkg_name]['optional'] = False if _pkg_name:
self.packages[_pkg_name]['optional'] = False
# enable upload tools for upload targets # enable upload tools for upload targets
if any(["upload" in t for t in targets] + ["program" in targets]): if any(["upload" in t for t in targets] + ["program" in targets]):