sorter: unit-mode inner_rel must carry dirs only, not duplicate the file name

This commit is contained in:
2026-10-06 17:15:45 +02:00
parent 2c6e7b4d34
commit 14ffc9e918
+4 -1
View File
@@ -439,7 +439,10 @@ def sort_plan(
while p != Path("."):
if str(p) in prov:
dest_key, unit_name = str(p), prov[str(p)]
inner_rel = rel.relative_to(p)
# dirs-only relative path (the file name itself is
# appended by build_target; keeping it here would
# duplicate it in the target path)
inner_rel = rel.relative_to(p).parent
break
p = p.parent
if unit_name is None: