mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 06:18:51 -06:00
fix: hold the data trees inside build_export
This commit is contained in:
1 parent
5271984e8e
commit
6451ea13b4
4 files changed
+95
-24
No files matched your search
@@ -16,7 +16,6 @@ Usage:
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import contextlib
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
@@ -27,8 +26,6 @@ from core.paths import TRUTH_DIR
|
||||
from exporter.originals import DEFAULT_CACHE
|
||||
from exporter.runner import run
|
||||
from model.cliargs import platform_arg, selected_platforms
|
||||
from model.registry import load_data_dir_registry
|
||||
from packs.datadirs import hold_data_dirs
|
||||
|
||||
|
||||
def main() -> None:
|
||||
@@ -69,20 +66,15 @@ def main() -> None:
|
||||
|
||||
platforms = selected_platforms(args)
|
||||
|
||||
with contextlib.ExitStack() as held:
|
||||
if not args.refresh_cache:
|
||||
# Removal candidates are proved against data/: a refresh swapping
|
||||
# a tree mid-walk listed entries only that tree holds as removable.
|
||||
hold_data_dirs(held, load_data_dir_registry(args.platforms_dir))
|
||||
code = run(
|
||||
platforms,
|
||||
args.truth_dir,
|
||||
args.output_dir,
|
||||
args.platforms_dir,
|
||||
args.upstream_dir,
|
||||
args.fetch,
|
||||
args.refresh_cache,
|
||||
)
|
||||
code = run(
|
||||
platforms,
|
||||
args.truth_dir,
|
||||
args.output_dir,
|
||||
args.platforms_dir,
|
||||
args.upstream_dir,
|
||||
args.fetch,
|
||||
args.refresh_cache,
|
||||
)
|
||||
sys.exit(code)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user