From 60e3d7450f258b6cf84a8927e592fd56014f9311 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 17 Jul 2015 14:28:14 +0300 Subject: [PATCH] Fix platform auto-installation --- platformio/commands/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio/commands/run.py b/platformio/commands/run.py index 7880f3fa..49d5e23f 100644 --- a/platformio/commands/run.py +++ b/platformio/commands/run.py @@ -191,7 +191,8 @@ def _autoinstall_platform(ctx, platform, targets): if upload_tools: cmd_options['with_package'] = ["uploader"] - elif (set(p.pkg_aliases_to_names(["toolchain"])) <= + elif (platform in installed_platforms and + set(p.pkg_aliases_to_names(["toolchain"])) <= set(p.get_installed_packages())): return