Commit Graph
2833 Commits
Author SHA1 Message Date
Abdessamad Derraz 36f2d1129e fix: accept a platform whose siblings lack a file 2026-11-21 06:45:11 +01:00
Abdessamad Derraz bac3070228 fix: register every romfolders format 2026-11-21 06:45:11 +01:00
Abdessamad Derraz b338d94fa0 fix: record no narrowing axis for an older list
A list with cores and neither systems nor regions is from an older
release, and recorded_axes reads none from it. A pack built here or by
generate_pack wrote cores and regions in its manifest. The installer
pack now asks recorded_axes, and the builder follows the same rule.
2026-11-21 06:04:39 +01:00
Abdessamad Derraz 83b1976903 refactor: read old branches through acquire
migrate --include-branches and the acquisition search list the legacy
platform branches with acquire.fetch.legacy_branch_files and read them
with legacy_branch_blob: one branch list (migrate lacked libretro), git
run from the repository root wherever the command started.
2026-11-21 06:04:39 +01:00
Abdessamad Derraz e636614ae3 refactor: read pipeline output with shared walkers
The four generate_pack parsers walk the lines under a full pack's header
through one generator, and the two verify parsers the lines under a
summary through another. The three offline comparisons hold the policy
through resolve.packfiles.offline() and read their inputs from one
setup function; platformpack is imported once.
2026-11-21 06:04:31 +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 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 922d60807f refactor: share frontend_identity with core_probe 2026-11-21 06:04:16 +01:00
Abdessamad Derraz 4f6bb08e2a fix: print byte counts with size_text 2026-11-21 06:04:16 +01:00
Abdessamad Derraz 49a8ed801e refactor: read input paths from core.paths 2026-11-21 06:04:08 +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 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 4e67868e11 refactor: name site addresses in sitegen.config 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 be63c6575a refactor: read setup display names in one place 2026-11-21 06:03:03 +01:00
Abdessamad Derraz 8f29887bda refactor: read manifest systems once per platform 2026-11-21 06:02:56 +01:00
Abdessamad Derraz 3f33b1c247 refactor: read recipe snapshots in one place 2026-11-21 06:02:44 +01:00
Abdessamad Derraz 437690d4a8 refactor: place systems by the section index 2026-11-21 06:02:44 +01:00
Abdessamad Derraz e79d2404bc refactor: cut site pages in parts in sitegen.parts
card_runs, the share loop, the card weight and the part stems and links were copied in startwith, systempages, emulatorpage and platformfiles. sitegen.parts gives weighted_runs, even_runs, part_stems and part_links; the cuts are unchanged for every block list the site passes.
2026-11-21 06:02:44 +01:00
Abdessamad Derraz 53d49bd002 refactor: name release assets in largefiles only
The dotted spelling, the download URL and the sha256 listing were rebuilt by release.assets, release.check and sitegen.cards. model.largefiles gives asset_spellings, asset_url, RELEASE_DOWNLOAD and digests_of. The release notes link is now URL-quoted like every other.
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 f5946a7845 refactor: define the pack suffix once
packs.parts held a second PACK_SUFFIX and five builders typed the literal; all read model.releaserecord.PACK_SUFFIX.
2026-11-21 06:02:28 +01:00
Abdessamad Derraz 71b3d7db63 refactor: name group packs with platform_pack_name
_group_pack_name and expected_pack_names assembled the stem, tags and suffix themselves; platform_pack_name now takes the group and is the one builder.
2026-11-21 06:02:28 +01:00
Abdessamad Derraz 814f7b6bb9 refactor: take pack labels from the name builder
release_pack_labels sliced the version tag off the stem with its own copy of the tag formula; platform_pack_prefix is that value.
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 eebe6a66c3 refactor: one torrentzip comment test for capture 2026-11-21 06:02:01 +01:00
Abdessamad Derraz 30cd881ef3 refactor: convert mame tags and versions once 2026-11-21 06:02:01 +01:00
Abdessamad Derraz f8003e90c8 refactor: share first-boot config evidence 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