mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 02:57:52 -06:00
refactor: one reader of a declared destination
This commit is contained in:
1 parent
d55555f3e0
commit
825c527d11
8 files changed
+30
-33
No files matched your search
@@ -17,7 +17,7 @@ from model.largefiles import fetch_large_file
|
||||
from core.hashing import cut_md5_owner
|
||||
from resolve.content import declared_hash_verdict
|
||||
from resolve.localfile import resolution_is_hash_exact, resolve_local_file
|
||||
from core.paths import REPO_ROOT, sanitize_pack_path
|
||||
from core.paths import REPO_ROOT, declared_destination
|
||||
from resolve.validation import inner_rom_check
|
||||
# CLI-wide network policy. Public helpers can override it explicitly, while
|
||||
# every CLI mode inherits --offline (including large-file release fallback).
|
||||
@@ -457,9 +457,7 @@ def _declarations_by_destination(
|
||||
for file_entry in system.get("files", []):
|
||||
if required_only and file_entry.get("required") is False:
|
||||
continue
|
||||
dest = sanitize_pack_path(
|
||||
file_entry.get("destination", file_entry.get("name", ""))
|
||||
)
|
||||
dest = declared_destination(file_entry)
|
||||
if not dest:
|
||||
continue
|
||||
full = f"{base_dest}/{dest}" if base_dest else dest
|
||||
|
||||
Reference in new issue
Block a user