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

+2 -1
View File
@@ -459,6 +459,7 @@ def _tree_members(
from packs import datatrees
from model.profiles import load_emulator_profiles
from model.platforms import load_platform_config
from packs.archive import Placed
from packs.paths import flat_arcname
config = load_platform_config(platform, platforms_dir)
@@ -471,7 +472,7 @@ def _tree_members(
with contextlib.redirect_stdout(io.StringIO()):
for src, full in datatrees.data_directory_members(
config.get("systems", {}), registry,
platform, base_dest, False, set(), set(), set(),
platform, base_dest, Placed(False),
core_trees=core_trees,
):
members[flat_arcname(full, base_dest, True)] = os.path.getsize(src)