sorter: unit-mode inner_rel must carry dirs only, not duplicate the file name
This commit is contained in:
+4
-1
@@ -439,7 +439,10 @@ def sort_plan(
|
|||||||
while p != Path("."):
|
while p != Path("."):
|
||||||
if str(p) in prov:
|
if str(p) in prov:
|
||||||
dest_key, unit_name = str(p), prov[str(p)]
|
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
|
break
|
||||||
p = p.parent
|
p = p.parent
|
||||||
if unit_name is None:
|
if unit_name is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user