fix: Add Lts/Proxies/TrainingAreaBase to release scope

- Include Lts/Proxies/TrainingAreaBase in release_items for header dependencies
- Add directory filtering logic for Lts/Proxies and TrainingAreaBase
- Required for CoPrtCnv to find training_area_telegrams.h

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-10-09 18:16:48 +00:00
1 parent 23e3f8d2d8
commit 6f87567a9c
1 file changed
+9 -2
+9 -2
View File
@@ -109,6 +109,7 @@ def copy_src_dir_to_dest_dir(srcdir, dstdir, perm=None, with_subdirs=True, relea
'TetraIF',
'Z/src',
'Lts/Common',
'Lts/Proxies/TrainingAreaBase', # Required for training_area_telegrams.h used by TetraIF
'CMakeLists.txt',
'cmake',
'tests',
@@ -139,8 +140,14 @@ def copy_src_dir_to_dest_dir(srcdir, dstdir, perm=None, with_subdirs=True, relea
# In Z directory, only keep src
dirs[:] = [d for d in dirs if d == 'src']
elif rel_root == 'Lts':
# In Lts directory, only keep Common
dirs[:] = [d for d in dirs if d == 'Common']
# In Lts directory, only keep Common and Proxies (for TrainingAreaBase)
dirs[:] = [d for d in dirs if d in ('Common', 'Proxies')]
elif rel_root == 'Lts/Proxies':
# In Lts/Proxies, only keep TrainingAreaBase
dirs[:] = [d for d in dirs if d == 'TrainingAreaBase']
elif rel_root.startswith('Lts/Proxies/TrainingAreaBase'):
# Keep all subdirectories under TrainingAreaBase (DDS code wrapped in conditionals)
pass
elif rel_root.startswith('Lts/Common'):
# Keep all subdirectories under Lts/Common except LtsUtilsGuiDds (requires DDS)
if rel_root == 'Lts/Common/LtsUtils/LtsUtilsGui':