File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -298,6 +298,9 @@ def _install_tl_install(self, version: str) -> bool:
298
298
self .packages [tl_install_name ]["optional" ] = False
299
299
self .packages [tl_install_name ]["version" ] = version
300
300
pm .install (version )
301
+ # Ensure backward compability by removing pio install status indicator
302
+ tl_piopm_path = os .path .join (tl_install_path , ".piopm" )
303
+ safe_remove_file (tl_piopm_path )
301
304
302
305
if os .path .exists (os .path .join (tl_install_path , "package.json" )):
303
306
logger .info (f"{ tl_install_name } successfully installed and verified" )
@@ -308,10 +311,6 @@ def _install_tl_install(self, version: str) -> bool:
308
311
# Copy tool-esp_install content to tl-install location
309
312
if safe_copy_directory (tl_install_path , old_tl_install_path ):
310
313
logger .info (f"Content copied from { tl_install_name } to old tl-install location" )
311
- old_tl_piopm_path = os .path .join (old_tl_install_path , ".piopm" )
312
- safe_remove_file (old_tl_piopm_path )
313
- tl_piopm_path = os .path .join (tl_install_path , ".piopm" )
314
- safe_remove_file (tl_piopm_path )
315
314
else :
316
315
logger .warning (f"Failed to copy content to old tl-install location" )
317
316
return True
You can’t perform that action at this time.
0 commit comments