refactor: place every file through Placed

data_directory_members, pack_data_tree and manifest_core_entries take
the Placed record instead of three loose sets and a fold flag, and verify's
replay of the builder (_builder_placement), hidden_extras and the
emulator pack check keep a Placed of their own. hidden_extras records the
sha1 at each taken path through the new Placed content option, which keeps
its same-content case twin rule. No behavior change.
This commit is contained in:
Abdessamad Derraz committed 2026-11-20 20:03:26 +01:00
1 parent 899f591575
commit ca3ff1d4c5
15 files changed
+62 -97

No files matched your search

+1 -3
View File
@@ -951,12 +951,10 @@ class _PlatformPackBuild:
"""Add the data directories to the pack. Returns how many files went in."""
plan = self.plan
required_only = plan.opts.required_only
seen_parents = self.placed.parents
added = 0
for src, full in data_directory_members(
pack_systems, plan.opts.data_registry, plan.platform_name, plan.base_dest,
self.placed.fold, self.placed.destinations, self.placed.lower,
seen_parents, required_only=required_only,
self.placed, required_only=required_only,
core_trees=core_trees,
):
add_pack_member(self.zf, src, self._flat(full))