mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 19:38:52 -06:00
fix: fail --manifest-targets without targets dir
This commit is contained in:
1 parent
6721a738b4
commit
dae6b3a146
3 files changed
+35
-13
No files matched your search
@@ -59,9 +59,16 @@ def _run_quick_mode(
|
||||
if holds_other_kind(args.output_dir, "targets"):
|
||||
sys.exit(1)
|
||||
with pack_output_lock(args.output_dir):
|
||||
generate_target_manifests(
|
||||
os.path.join(args.platforms_dir, "targets"), args.output_dir
|
||||
)
|
||||
try:
|
||||
written = generate_target_manifests(
|
||||
os.path.join(args.platforms_dir, "targets"), args.output_dir
|
||||
)
|
||||
except FileNotFoundError as exc:
|
||||
print(exc, file=sys.stderr)
|
||||
sys.exit(1)
|
||||
for name, count in written:
|
||||
print(f" {name}: {count} targets")
|
||||
print(f"Generated {len(written)} target manifest(s) in {args.output_dir}")
|
||||
return True
|
||||
return run_listing(args, parser, args.list)
|
||||
|
||||
|
||||
Reference in new issue
Block a user