feat: add lost 2 artifact functions in packer

This commit is contained in:
2026-08-05 10:50:07 +08:00
parent 8eed2dc7f0
commit 2c5df3fd63
+4 -2
View File
@@ -1,4 +1,3 @@
import fnmatch
import sys import sys
import logging import logging
from pathlib import Path from pathlib import Path
@@ -80,7 +79,10 @@ def resolve_include_copy(ctx: ArtifactContext) -> tuple[FileCopyInfo, ...]:
new_project_root = project_root / Path(common_prefix) new_project_root = project_root / Path(common_prefix)
for subpath in new_project_root.glob(glob_residue): 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: else:
rv.append( rv.append(
FileCopyInfo( FileCopyInfo(