mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
feat(tools): skip non-related files for adding to tools.json
This commit is contained in:
@@ -3015,6 +3015,10 @@ def action_add_version(args: Any) -> None:
|
|||||||
)
|
)
|
||||||
updated_tools = []
|
updated_tools = []
|
||||||
for file_size, file_sha256, file_name in checksum_info:
|
for file_size, file_sha256, file_name in checksum_info:
|
||||||
|
skip_files = ['debug-sections', 'esp8266-multilib']
|
||||||
|
if any(skip_file in file_name for skip_file in skip_files):
|
||||||
|
continue
|
||||||
|
|
||||||
xz_file = file_name.replace('.tar.gz', '.tar.xz')
|
xz_file = file_name.replace('.tar.gz', '.tar.xz')
|
||||||
if xz_file in updated_tools:
|
if xz_file in updated_tools:
|
||||||
# .tar.xz archives are preferable, but .tar.gz is needed, for example, when using PlatformIO
|
# .tar.xz archives are preferable, but .tar.gz is needed, for example, when using PlatformIO
|
||||||
|
|||||||
Reference in New Issue
Block a user