mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 19:08:51 -06:00
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:
1 parent
899f591575
commit
ca3ff1d4c5
15 files changed
+62
-97
No files matched your search
@@ -190,7 +190,7 @@ class _EmulatorPackBuild:
|
||||
data_dir_registry=self.data_registry,
|
||||
offline=self.offline,
|
||||
)
|
||||
taken = archive_dest.lower() in self.placed.lower
|
||||
taken = self.placed.holds(archive_dest)
|
||||
if taken or self.placed.conflicts(archive_dest):
|
||||
# Another profile's file holds this path. The same archive
|
||||
# asked for twice is served. Anything else leaves this
|
||||
@@ -402,8 +402,7 @@ class _EmulatorPackBuild:
|
||||
if prefix:
|
||||
dd_dest = f"{prefix}/{dd_dest}" if dd_dest else prefix
|
||||
self.data_files += pack_data_tree(
|
||||
self.zf, local_cache, dd_dest, self.placed.destinations,
|
||||
self.placed.parents, self.placed.lower, self.packed_at,
|
||||
self.zf, local_cache, dd_dest, self.placed, self.packed_at,
|
||||
)
|
||||
|
||||
def nothing_needed(self) -> bool:
|
||||
|
||||
Reference in new issue
Block a user