Commit Graph
3140 Commits
Author SHA1 Message Date
Abdessamad Derraz 7b89a558ff fix: ask folder questions through one reader
The copy question, the card question and the BIOS folder question each
read q, Enter, a listed number or a folder. With no drive listed, the
copy question took "2" as the folder ./2. They share one reader now,
and the y/N questions read only y or yes: "yeah" created folders.
2026-11-21 06:04:39 +01:00
Abdessamad Derraz bf34e71804 fix: remove the games cache scratch on a failure
A cache write that failed left index.json.<pid>.part behind, one more
on each run. The cache and the install record now write through one
scratch file beside the target, removed when the write fails and named
when it cannot be.
2026-11-21 06:04:39 +01:00
Abdessamad Derraz 6acdf4b193 fix: retry archives and the app like files
One decision says whether a failed request is asked again and when:
5xx and 429 wait what Retry-After asks, a clock in the past or no certificate
list stops at once. A data archive and the handheld app waited 1 s on a
429 that asked for 30 and gave up where a BIOS file arrived, and the app
took a body cut short of its Content-Length as the file.
2026-11-21 06:04:39 +01:00
Abdessamad Derraz c41fb9e609 fix: give data tree files the umask mode
Verified bytes reach their place through one helper that sets the mode a
plain open() gives and clears a read-only attribute. A data tree member
skipped both and landed 0600, unreadable by the emulator after a sudo
install. The expected digests of an entry are read by one function.
2026-11-21 06:04:39 +01:00
Abdessamad Derraz 96539e353c fix: let verify report on --all --system
verify refused --all --system as mutually exclusive while generate_pack
builds a --system pack per platform. Both now resolve the list through
model.cliargs.resolve_system_ids and scope the platforms through
resolve.cores.platforms_with_systems: a platform without the system is
skipped under --all and refused under --platform, with the note on
stderr so verify --json stays a document.
2026-11-21 06:04:31 +01:00
Abdessamad Derraz b52c7cfafb fix: share listing and region parsing in CLIs
verify and generate_pack read --region, comma lists and the listing
modes through model.cliargs (requested_regions, comma_list, LISTING_FLAGS,
refuse_beside_mode, run_listing). verify --list-emulators --list-systems
printed the first listing and exited 0; it now refuses the second as
generate_pack does.
2026-11-21 06:04:31 +01:00
Abdessamad Derraz ee66aa4e66 fix: scope --target the same way in every tool
slots and cross_reference go through model.targets.target_scope, so a
mistyped target ends with ERROR and exit 1 as in verify, where they
exited 2. The platforms --all skips are noted on stderr, which kept
slots --json from printing them ahead of its document. slots reads the
mode through platform_mode and builds the ZIP index and data-directory
registry once per run instead of twice per platform.
2026-11-21 06:04:31 +01:00
Abdessamad Derraz 3467b80b38 fix: check every romfolders source_ref
model.romfolders.source_refs walks every ref a setup carries, offers[]
and searched_by[] included, which the three hand lists in
validate_schemas and the tests skipped: 4176 refs were never matched
against the declared sources. validate_schemas parses them with
split_refs and reports a malformed part.
2026-11-21 06:04:31 +01:00
Abdessamad Derraz ed19ae4198 fix: accept only registered platforms
require_platform checks the registry instead of any platforms/<name>.yml:
verify --platform _shared reported 0/0 present and exited 0. --all and
--platform resolve through model.cliargs.selected_platforms in auto_fetch,
generate_truth, diff_truth, export_native and verify. The truth directory
is core.paths.TRUTH_DIR for its writer and its three readers, and the
remaining literal database and profile paths read core.paths and
add_repo_inputs.
2026-11-21 06:04:31 +01:00
Abdessamad Derraz a732e69251 fix: read the release total in its own unit
The large-files notes print the total through size_text since the byte
counts were unified: 1022.4 MB, the unit of the rows above it, where
the test still expected 1.0 GB.
2026-11-21 06:04:23 +01:00
Abdessamad Derraz 8255d94e75 fix: fetch pack_probe content like the campaign
probes.content.fetch_content and find_romfetch serve ContentStore and
pack_probe: RETROBIOS_ROMFETCH is honoured, a transient romfetch exit is
retried, the run has a timeout in its own process group, and an exit
without a JSON error block no longer raises KeyError.
2026-11-21 06:04:23 +01:00
Abdessamad Derraz d2984bc466 fix: start core_probe one way from every probe
pack_probe and region_check run core_probe through probes.host.run_when_idle:
a busy refusal is retried until the wait runs out, a timeout kills the
run's whole process group, and pack_probe takes core_probe's own probe
lock, which honours RETROBIOS_PROBE_LOCK_HELD. core_probe names its busy
exit status EXIT_BUSY.
2026-11-21 06:04:23 +01:00
Abdessamad Derraz 4f6bb08e2a fix: print byte counts with size_text 2026-11-21 06:04:16 +01:00
Abdessamad Derraz 9f9fe2bfec fix: stop auto_fetch on a mistyped --db 2026-11-21 06:03:55 +01:00
Abdessamad Derraz a34949d9e4 fix: share the gap report scope with the site 2026-11-21 06:03:37 +01:00
Abdessamad Derraz a119efc149 fix: pair gaps rows with the entry they score 2026-11-21 06:03:21 +01:00
Abdessamad Derraz a9d8e571c1 refactor: join name lists through core.text 2026-11-21 06:03:21 +01:00
Abdessamad Derraz 4b8e91bb6f chore: read the zip table source in its test 2026-11-21 06:03:21 +01:00
Abdessamad Derraz 77ba6868a0 refactor: count nouns through core.text 2026-11-21 06:03:21 +01:00
Abdessamad Derraz 4585e3ffea refactor: write card anchors through one helper 2026-11-21 06:03:21 +01:00
Abdessamad Derraz 8db5bf6cf0 refactor: build the readme zip table in one place 2026-11-21 06:03:14 +01:00
Abdessamad Derraz 437690d4a8 refactor: place systems by the section index 2026-11-21 06:02:44 +01:00
Abdessamad Derraz ccd440f67a refactor: load install.py as a module in one place
The event schema, the installer doc, the launcher index, the site and the README each executed install.py with their own importlib block. installer_build.module.installer_module is cached and read by all five.
2026-11-21 06:02:35 +01:00
Abdessamad Derraz fb17242a78 refactor: one bounded join for pack file names
bounded_pack_name repeated bounded_join with another joiner and budget, and md5pack hashed its selection inline. bounded_join takes joiner, budget and suffix, selection_digest serves all three; emulator packs keep the '_' joiner, so no name changes.
2026-11-21 06:02:28 +01:00
Abdessamad Derraz 87329ca7ee fix: refuse a second installer pin line
pinned_sha256 in installer_build.pins reads the one pin of a bootstrap and refuses any other count. stale_pins, build_port, the launcher index, the PyPI build and the site bootstraps all read it: three of them took the first line, while sh runs with the last.
2026-11-21 06:02:28 +01:00
Abdessamad Derraz b9441c545d fix: read variant zip copies as archives 2026-11-21 06:02:28 +01:00
Abdessamad Derraz 51f6898cee fix: place fetched files by the review rule 2026-11-21 06:02:21 +01:00
Abdessamad Derraz d3d82dd296 fix: resolve the --changed base in one place 2026-11-21 06:02:11 +01:00
Abdessamad Derraz 30113783c9 fix: hold the repository for source-paths.json 2026-11-21 06:02:11 +01:00
Abdessamad Derraz bdfdb608e0 fix: read a version basis at the profile_sync pin 2026-11-21 06:02:11 +01:00
Abdessamad Derraz 198e2b2dc7 refactor: parse platform source urls in one place 2026-11-21 06:02:11 +01:00
Abdessamad Derraz 30cd881ef3 refactor: convert mame tags and versions once 2026-11-21 06:02:01 +01:00
Abdessamad Derraz abbe267fb8 refactor: read game dats through logiqx_parser 2026-11-21 06:02:01 +01:00
Abdessamad Derraz fd0f6c7798 refactor: share the git blob check of downloads 2026-11-21 06:02:01 +01:00
Abdessamad Derraz 8d58a9edfd refactor: read dat packs through one helper 2026-11-21 06:01:53 +01:00
Abdessamad Derraz e16caf57b4 refactor: read c comments and calls through clex 2026-11-21 06:01:53 +01:00
Abdessamad Derraz 9f8ac141c1 refactor: share the hash scrapers' sparse clone 2026-11-21 06:01:53 +01:00
Abdessamad Derraz 91fe93c5a2 fix: read --db through load_database in importers 2026-11-21 06:01:53 +01:00
Abdessamad Derraz 0f602d5914 fix: give retropie modules the platform name flag 2026-11-21 06:01:53 +01:00
Abdessamad Derraz b80fc1919d refactor: read es-de commands through romfolders 2026-11-21 06:01:53 +01:00
Abdessamad Derraz 0548d3d823 refactor: group every scraper's systems one way 2026-11-21 06:01:53 +01:00
Abdessamad Derraz f245c210e0 refactor: read retrobat es_systems.cfg once 2026-11-21 06:01:53 +01:00
Abdessamad Derraz 3eb6bd81a1 refactor: read rocknix-systems as a checkBios list 2026-11-21 06:01:53 +01:00
Abdessamad Derraz c4d3506cf9 fix: read c# comments through one lexer 2026-11-21 06:01:53 +01:00
Abdessamad Derraz 2665e30bdf fix: stop the emudeck scrape on an unread sheet 2026-11-21 06:01:53 +01:00
Abdessamad Derraz 79c3c02885 fix: target scrapers exit on errors like scrapers 2026-11-21 06:01:53 +01:00
Abdessamad Derraz 83fdc97edd fix: skip quoted hashes in batocera item notes 2026-11-21 06:01:53 +01:00
Abdessamad Derraz 23e3cc06b3 fix: find held records by the resolver hash rule 2026-11-21 06:01:53 +01:00
Abdessamad Derraz b81e89dbfb fix: judge declared sizes per entry with size_fits 2026-11-21 06:01:46 +01:00
Abdessamad Derraz 2308039452 fix: read a database record by its path field 2026-11-21 06:01:46 +01:00