mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 18:47:53 -06:00
refactor: hand uncached data trees to the caller
data_directory_members printed a warning and filled a process-wide set that the pack, the manifest and the step 5 comparison all fed. It now reports each uncached tree through uncached_out. The platform pack and the manifest print the warning and add the tree to the run's account, as the emulator pack already did with data_dir_notices, and generate_pack names what it wrote: a --manifest run no longer ends on 'packs written without data directories'.
This commit is contained in:
1 parent
01f8408038
commit
6721a738b4
9 files changed
+159
-64
No files matched your search
@@ -2,8 +2,6 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import contextlib
|
||||
import io
|
||||
import os
|
||||
import re
|
||||
|
||||
@@ -36,13 +34,12 @@ def tree_members(
|
||||
config, load_emulator_profiles(emulators_dir), platform, registry,
|
||||
)
|
||||
members: dict[str, int] = {}
|
||||
with contextlib.redirect_stdout(io.StringIO()):
|
||||
for src, full in datatrees.data_directory_members(
|
||||
config.get("systems", {}), registry,
|
||||
platform, base_dest, Placed(False),
|
||||
core_trees=core_trees,
|
||||
):
|
||||
members[flat_arcname(full, base_dest, True)] = os.path.getsize(src)
|
||||
for src, full in datatrees.data_directory_members(
|
||||
config.get("systems", {}), registry,
|
||||
platform, base_dest, Placed(False),
|
||||
core_trees=core_trees,
|
||||
):
|
||||
members[flat_arcname(full, base_dest, True)] = os.path.getsize(src)
|
||||
return members
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user