From 2c5df3fd637b35833d0c1f5ef9658211e15832d5 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Wed, 5 Aug 2026 10:50:07 +0800 Subject: [PATCH] feat: add lost 2 artifact functions in packer --- packer/src/sarasacw_omrf_packer/artifact.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packer/src/sarasacw_omrf_packer/artifact.py b/packer/src/sarasacw_omrf_packer/artifact.py index e7bf9d8..7eb38b9 100644 --- a/packer/src/sarasacw_omrf_packer/artifact.py +++ b/packer/src/sarasacw_omrf_packer/artifact.py @@ -1,4 +1,3 @@ -import fnmatch import sys import logging from pathlib import Path @@ -80,7 +79,10 @@ def resolve_include_copy(ctx: ArtifactContext) -> tuple[FileCopyInfo, ...]: new_project_root = project_root / Path(common_prefix) for subpath in new_project_root.glob(glob_residue): - rv.append(FileCopyInfo(new_project_root / subpath, to_path / subpath)) + # YYC MARK: + # Built ``subpath`` is prefix with ``new_project_root`` + relative_subpath = subpath.relative_to(new_project_root) + rv.append(FileCopyInfo(subpath, to_path / relative_subpath)) else: rv.append( FileCopyInfo(