Commit Graph
3290 Commits
Author SHA1 Message Date
Abdessamad Derraz 2f9cfc8e8d fix: site reads core file counts from verify
compute_coverage recounted the gap entries: one per entry, not one per
pack path, with held-but-unplaced and bundled files counted missing.
RetroArch read 7956 packed and 419 missing where verify says 7977 and
66. packs/shares.py holds the split both now read.
2026-11-21 21:42:18 +01:00
Abdessamad Derraz d1b0c77039 refactor: move upstream DAT fetching to datfetch 2026-11-21 21:42:18 +01:00
Abdessamad Derraz 3df7a60e43 refactor: merge hashes from dicts, write apart 2026-11-21 21:42:18 +01:00
Abdessamad Derraz 3779f07bb5 fix: write retrodeck repeats to each component
duckstation and retroarch both list the PS1 BIOS with one md5, and the
entry was filed under the first component read: an export correction
reached duckstation's manifest and left retroarch's line as it was.
component now lists every component that repeats an entry (a string for
one), and the exporter writes the entry back to each. A repeat is the
same name, path, hashes, native system and requirement: MAME's and
FBNeo's cchip.zip, or two required labels, stay two entries, since an
export corrects a line by its system and writes its requirement back.
Rescraped at components fcd0d729: 73 entries list two components, 9
come back as their own entries. install/retrodeck.json is unchanged.
2026-11-21 21:04:19 +01:00
Abdessamad Derraz e8704a793e fix: keep every md5 retrodeck manifests declare
RetroDECK checks each manifest entry against its own md5 list, one row
per entry, the file found under its exact basename
(api_data_processing.sh:304-313, 322-339, 350-361 at 0.10.10b). The
scraper kept the first entry per system and case-folded name and
dropped 22: FBNeo's decocass.zip, pgm.zip, skns.zip beside MAME's, two
64DD_IPL.bin revisions, and the lowercase MSX, PC-98 and PC-88 files
that are other files on its Linux filesystem (MSX2P.rom's one md5 is
the first of MSX2P.ROM's list). Only the same name, path and hashes is
a repeat now. Rescraped at components fcd0d729, manifest regenerated.
2026-11-21 21:04:19 +01:00
Abdessamad Derraz 8fc294ef97 fix: a full drive is an event, not stderr text 2026-11-21 19:51:02 +01:00
Abdessamad Derraz 0b0bf29089 fix: say why an unreadable board list stops a pack 2026-11-21 19:50:47 +01:00
Abdessamad Derraz c888ae8101 fix: keep stdout to events in a removal
--remove and --backups opened the --manifest and --from-pack before
the event stream started: the list's platform and the pack name went to
stdout ahead of start, and a refusal of the pack came with no event.
They are opened inside the action now.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz eba627aa89 refactor: one refusal path to stderr and events
Library functions printed their refusal and exited, each deciding on its
own whether --events got an error event. --cores-dir, --installed-cores
with no core, a list without system_cores or standalone_builds, a pack
that cannot be used, a board list a run needs and --dest alone beside
two setups ended on code 1 with no reason in the stream.

They now raise Refusal (installer/refusal.py), carrying the stage, the
reason, the platform, the lines and the code. The install, an action
framed by events and main report it once: the error event, then the
same lines on stderr, so the text and exit codes stay as they were.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz ced68a9135 fix: a removal drops the system name it recorded
The record keeps --system as typed (psx). Removing that system compared
the recorded name to the id, kept psx in the choice, and the next
update installed the PlayStation files again.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz 80f42f0573 fix: one system name rule for install and remove
The removal resolved --system against the list's ids alone, so a
platform name or a site title that installed the files was refused as
an unknown system. Both paths now call resolve_systems.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz 475dfe0e0a fix: quit, proxy and setup folder read once
A chosen quit is read from the state, so the version note after the
quit line no longer sends it to stdout where the launcher misses it.

The proxy the screen names is the one urllib uses for the list's URL
(scheme variable or system settings, NO_PROXY honoured), recorded in
the ListProblem when the request fails.

The setup screen and the plan format from facts read once (the BIOS
folder of each setup, the retroarch.cfg naming dest), never by a frame
in the thread that reads the keys.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz 05b6b9edcf fix: dedup keeps the copy the index names
dedup ranked copies by path_priority (variant, MAME, Arcade, length) while the scan picked the primary by _takes_primary (variant, emulator tree, walk order). Given sms.rom under bios/Other/zesarux/ and bios/Sega/Master System/, dedup removed the indexed copy and kept the foreign-tree one the resolver sets aside. Both now read collection.scan.primary_rank. The rank reproduces every primary of the current database.json, so the index does not move; dedup's tie-break follows the walk order instead of MAME and path length.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz 6c92b0172e fix: step 5 skips a build that recorded nothing 2026-11-21 19:50:46 +01:00
Abdessamad Derraz 9814bb1234 refactor: step 5 reads counts both tools record 2026-11-21 19:50:42 +01:00
Abdessamad Derraz cf7e13808f refactor: one predicate for the pack notes 2026-11-21 19:50:33 +01:00
Abdessamad Derraz 66c83b06b0 refactor: name the stale rows the planner reads 2026-11-21 19:50:33 +01:00
Abdessamad Derraz 4835c59508 chore: type the pack probe test fixtures 2026-11-21 19:50:33 +01:00
Abdessamad Derraz 472b06a3e0 fix: appimages cached in the main checkout 2026-11-21 19:50:33 +01:00
Abdessamad Derraz eddb26f104 refactor: one load threshold for every probe 2026-11-21 19:50:33 +01:00
Abdessamad Derraz 91e385598e fix: say why a version page or check went unread 2026-11-21 19:50:33 +01:00
Abdessamad Derraz dae6b3a146 fix: fail --manifest-targets without targets dir 2026-11-21 19:50:33 +01:00
Abdessamad Derraz 6721a738b4 refactor: hand uncached data trees to the caller
data_directory_members printed a warning and filled a process-wide set
that the pack, the manifest and the step 5 comparison all fed. It now
reports each uncached tree through uncached_out. The platform pack and
the manifest print the warning and add the tree to the run's account,
as the emulator pack already did with data_dir_notices, and
generate_pack names what it wrote: a --manifest run no longer ends on
'packs written without data directories'.
2026-11-21 19:50:33 +01:00
Abdessamad Derraz 9a6003c22f refactor: read the demo facts in demovariants 2026-11-21 19:50:33 +01:00
Abdessamad Derraz 416299b6e0 refactor: move coverage and release out of readme 2026-11-21 19:50:28 +01:00
Abdessamad Derraz 9521dd040a refactor: one wanted list for page and csv
The provenance CSV rebuilt the catalog report and refiltered derivable
dumps on its own. The site builds the report once, wanted_dumps takes the
derivable dumps out without mutating it, and the page, its CSV and the
gaps page read that one result. Rows checked identical on the real data
(2,302 before and after).
2026-11-21 19:50:10 +01:00
Abdessamad Derraz 380b3df823 fix: gaps badge reads verify's severity counts
The badge refiltered coverage details for missing required firmware and
ignored hle_fallback: a required file the core replaces by HLE is INFO in
verify and passes --strict, yet showed as a red required gap. The count
now comes from severity_counts through packs.verdicts.blocking_missing.
2026-11-21 19:50:10 +01:00
Abdessamad Derraz ff3b2699bd refactor: one retropie package script selector 2026-11-21 19:50:10 +01:00
Abdessamad Derraz 5a931ad4b1 fix: stop on an unreadable retrodeck manifest
The local manifest read printed a warning and left the component out
of retrodeck.yml with exit 0, where the remote read raises.
2026-11-21 19:50:10 +01:00
Abdessamad Derraz 1b7d30967b fix: surface upstream entries a scraper drops
RomM skipped an unmapped IGDB slug and RetroDECK a second component's
conflicting MD5 with a stderr warning only: the rescrape exited 0, the
rewritten file showed no diff and check_freshness said OK.

An unmapped slug now fails the RomM scrape. A deliberate drop goes in
BaseScraper.dropped, scraper_cli prints it under DROPPED_PREFIX, and the
freshness rescrape reports an otherwise unchanged platform UNKNOWN.
2026-11-21 19:50:10 +01:00
Abdessamad Derraz 398782a5cd fix: key the fbneo dat cache by commit
fetch_pack refilled one fbneo-dats folder for whatever revision was
asked, and the offline arcade import rebuilt its paths by hand: a parent
map labelled with the profile's pin could be read from another commit's
DATs. The folder is now fbneo-dats/<sha>, and cached_pack() next to
fetch_pack is the offline read, raising NotCached.
2026-11-21 19:50:10 +01:00
Abdessamad Derraz bc48d4028a fix: key fbneo board roms by their archive
find_bios_sets keyed each BDF_BOARDROM set by its driver name, so the
15 console entries (msx.zip, coleco.zip, gba.zip...) never matched the
hash cache. The archive is now what GetZipName opens, through one
zip_name() that arcade_parent_importer shares. The RomDesc comes from
the struct's RomInfo field and decimal sizes are read: ngp, isgsm,
midssio, channelf, ym2608 and the five DSP sets had no ROM.
2026-11-21 19:50:10 +01:00
Abdessamad Derraz 61a4e909bd fix: one space count for both plans and the run 2026-11-21 16:44:02 +01:00
Abdessamad Derraz 1e6f106525 refactor: one list failure for line and screen 2026-11-21 16:44:02 +01:00
Abdessamad Derraz 5436a45d4a fix: resolve the remote once, in main 2026-11-21 16:44:02 +01:00
Abdessamad Derraz 4cb82adce3 refactor: keep detection lines as data
Detection now keeps what it says in DETECTION_NOTES and prints it only in
line mode. The full screen reads the list under detection_held() instead
of capturing stdout and stderr and dropping refusals by comparing text,
which said a refusal twice once screen_text escaped its folder.
2026-11-21 16:44:02 +01:00
Abdessamad Derraz 36d5827b25 fix: read a full drive once when the run ends 2026-11-21 16:44:01 +01:00
Abdessamad Derraz 0e2be04f9c fix: read the folder screen drives once 2026-11-21 16:44:01 +01:00
Abdessamad Derraz 49dbb2828d refactor: read the declarations once per database
collect_all_aliases opened platforms/ and emulators/ from paths fixed to
the working directory while declarations took them as parameters, so a
build walked every YAML twice. read_declarations now reads both once,
reports unreadable sources, and hands the alias pass and the proven-name
index their entries. generate_db gains --platforms-dir and
--emulators-dir and refuses a missing one.
2026-11-21 16:43:57 +01:00
Abdessamad Derraz a30984912c fix: keep the offline database build offline
preserve_large_file_entries mixed the keep-or-drop rule with a download,
a write into bios/ and a SystemExit. The rule is now surviving_entries,
the restore a separate step that receives offline, and read_database
raises DatabaseUnreadable that the build turns into exit 1. generate_db
gains --offline, which pipeline --offline passes to step 1.
2026-11-21 16:43:57 +01:00
Abdessamad Derraz 8ec1c3aa2f fix: read shared cli options in the doc page check 2026-11-21 16:43:57 +01:00
Abdessamad Derraz 3869a24b6a refactor: let the restore command print its report 2026-11-21 16:43:57 +01:00
Abdessamad Derraz 75ccaf460c refactor: read verify output by its command 2026-11-21 16:43:57 +01:00
Abdessamad Derraz 35ad46e8c5 refactor: one rescrape command for both freshness 2026-11-21 16:43:57 +01:00
Abdessamad Derraz 3b16ee2633 refactor: log truth hash conflicts, not print 2026-11-21 16:43:57 +01:00
Abdessamad Derraz 3e55385410 fix: hash-check region games in the main cache
probes.content holds where test games live (content_root, the main
checkout's .cache/test-content) and that a game is checked against its
identity.json before it runs (ready_folder). campaign, pack_probe and
region_check all go through it. region_check ran a game without the
identity check and looked for games and cores in the current tree,
which a linked worktree does not have.

packprobe looked the main checkout up at import, running git: the
content root and core cache are now computed when a run needs them.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz b018681f06 refactor: compute an export apart from writing it 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 745ab63e63 refactor: hand exporters the profiles they read 2026-11-21 16:43:46 +01:00
Abdessamad Derraz 69d29e786a fix: title pack systems from the given collection
system_titles read the site's installed sections, loaded from the repository's database.json and profiles, so a manifest built with --db and --emulators-dir titled its systems from another collection. The lookup now takes the console sections, and the manifest builds them from its own db, bios folder and profiles.
2026-11-21 16:43:46 +01:00
Abdessamad Derraz 8787f453c7 fix: return target skip notes, print them in scope
build_target_cores_cache printed its INFO notes itself, so expected_pack_names wrote notes about platforms nobody asked for. The notes come back with the cache and target_scope, the command-line wrapper, prints them.
2026-11-21 16:43:46 +01:00