Fix bug with package without alias

This commit is contained in:
Ivan Kravets
2015-02-03 18:44:24 +02:00
parent 68cec0448e
commit 2a84aec59e

View File

@ -208,7 +208,7 @@ class BasePlatform(object):
# append aliases of the installed packages
for name, options in self.get_packages().items():
if name not in installed_packages:
if "alias" not in options or name not in installed_packages:
continue
variables.append(
"PIOPACKAGE_%s=%s" % (options['alias'].upper(), name))