Skip to content

Commit 5dad086

Browse files
authored
remove "tl-install" when not needed anymore
1 parent 84f6cd4 commit 5dad086

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

platform.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ def configure_default_packages(self, variables, targets):
4242
mcu = variables.get("board_build.mcu", board_config.get("build.mcu", "esp32"))
4343
frameworks = variables.get("pioframework", [])
4444

45-
self.packages["tl-install"]["optional"] = False
46-
4745
# IDF Install is needed only one time
4846
if not os.path.exists(join(IDF_TOOLS_PATH_DEFAULT, "tools")) and os.path.exists(IDF_TOOLS):
4947
rc = subprocess.call(IDF_TOOLS_CMD)
@@ -130,6 +128,7 @@ def configure_default_packages(self, variables, targets):
130128
tl_path = "file://" + join(IDF_TOOLS_PATH_DEFAULT, "tools", gdb_package)
131129
self.packages[gdb_package]["optional"] = False
132130
self.packages[gdb_package]["version"] = tl_path
131+
del self.packages["tl-install"]
133132

134133
# Common packages for IDF and mixed Arduino+IDF projects
135134
if "espidf" in frameworks and os.path.exists(IDF_TOOLS):

0 commit comments

Comments
 (0)