From 6f87567a9c504609273656122368f68f7e34bf92 Mon Sep 17 00:00:00 2001 From: Torsten Wierschin Date: Fri, 9 Oct 2026 18:16:48 +0000 Subject: [PATCH] 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> --- make_rpm_ubuntu26.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/make_rpm_ubuntu26.py b/make_rpm_ubuntu26.py index 67ebeda..f368134 100755 --- a/make_rpm_ubuntu26.py +++ b/make_rpm_ubuntu26.py @@ -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':