Commit Graph
3314 Commits
Author SHA1 Message Date
Abdessamad Derraz 85f6447333 docs: drop two more clause semicolons 2026-11-22 00:17:50 +01:00
Abdessamad Derraz bb5f29ff0c fix: read refusal exit codes in the exit table 2026-11-22 00:00:00 +01:00
Abdessamad Derraz 7222207f3b fix: guard target lists with board images 2026-11-21 21:46:27 +01:00
Abdessamad Derraz 2b5955e8a5 refactor: return the md5 pack outcome as data 2026-11-21 21:46:27 +01:00
Abdessamad Derraz bbb139bbaf fix: name uncached trees once per manifest 2026-11-21 21:46:27 +01:00
Abdessamad Derraz 11e3ebb44f fix: say why a removal stops in its events
A --file outside the folder printed its own line and returned 2 with no
removal_plan, and a removal or backup deletion with no yes, a folder that
is no backup and a setup left open ended on stderr alone. The first goes
through _removal_refused, the others raise Refusal.
2026-11-21 21:42:20 +01:00
Abdessamad Derraz 665e2ebb52 fix: send every refusal as an error event
--romm-firmware, --pack without a platform, an option the list does not
record, a board list the run cannot go on without, a full drive and the
--dest a named platform needs printed and exited on their own: --events
got end and no error. Each now raises Refusal where it is decided, and
refuse_name, --find and the space check stop formatting their own copy.
2026-11-21 21:42:20 +01:00
Abdessamad Derraz 571c4bbfd9 fix: count roms left out after the choice
The roms, configs and emulator folder lines were printed while the
entries were placed, before --system, --core, --region and the menu
narrowed the list: --system panasonic-3do on EmuDeck said 1918 roms
files were left out where 6 belong to the run. Placement now only
records the reason, and say_unplaced counts the narrowed entries
next to say_saves. The unused printing branch of place_save_entries
goes with it.
2026-11-21 21:42:20 +01:00
Abdessamad Derraz 6e0b0724de fix: hold the offline choice in the screen state 2026-11-21 21:42:19 +01:00
Abdessamad Derraz f0ab5181ab fix: keep the offline variable beside --offline 2026-11-21 21:42:19 +01:00
Abdessamad Derraz 4adb8ea635 fix: find archive.org files by sha1 in one place 2026-11-21 21:42:19 +01:00
Abdessamad Derraz 6f3500d8c8 fix: vary a primary only with its own copies
Campaign.variant_files listed every .variants/ copy the database named
after the entry, so QUASI88's PC-88 font.rom was varied with a PC-98
font filed under the same name. resolve.localfile.variant_copies keeps
the copies in the primary's own .variants/ folder that pass the entry's
declared hashes and shape checks; the campaign reads it.
2026-11-21 21:42:19 +01:00
Abdessamad Derraz cdf0aa6774 fix: external downloads obey RETROBIOS_OFFLINE 2026-11-21 21:42:19 +01:00
Abdessamad Derraz c07a47362e fix: decide offline once before the release check 2026-11-21 21:42:19 +01:00
Abdessamad Derraz 1f9633c7e5 fix: check core_version in its basis repository
version_basis reads core_version in the repository its repo or url names
(PCSX2 for pcee2, yaps2, triforce, hatari2014), while --check-version and
the triage read the tags of the port the profile was read from, which
carries none. version_repo() decides it once for the three readers, and
the tag ancestry uses the pin of that repository. A newer release of a
held upstream (upstream_frozen) is not reported, as one past a held pin
is not.
2026-11-21 21:42:19 +01:00
Abdessamad Derraz f462ec5fa0 fix: read each cited path in its own repository
The resolver settles which declared repository holds each cited path,
but detection, the extras and the triage read every path in the source
repository at the primary revisions, and missed what a profile cites in
its upstream (geolith jg.c). The report now carries the repository and
revisions each path was settled in, and the bump guard asks whether any
repository the bump moves gained a file or a hash, not only the port.
2026-11-21 21:42:19 +01:00
Abdessamad Derraz 0530c007a8 fix: run only programs of proven launchers 2026-11-21 21:42:19 +01:00
Abdessamad Derraz b070d1a41a fix: categories ignore unproven launcher records 2026-11-21 21:42:19 +01:00
Abdessamad Derraz 1839916ca2 fix: prove launcher records against run profiles 2026-11-21 21:42:19 +01:00
Abdessamad Derraz e36516f3b0 refactor: print the hash lookup from packs 2026-11-21 21:42:19 +01:00
Abdessamad Derraz 3df143cbe1 fix: check each built variant as verify-packs does
The build skipped conformance on every required-only, platform-only and
truth pack while --verify-packs held the same pack to its own variant,
so an --all-variants run passed packs the verifier could fail.
check_pack_conformance reads the variant from the pack name and both
paths call it; the finalizer is told the variants the run built.
baseline_shortfall moves beside the check, narrows_contents goes.
2026-11-21 21:42:19 +01:00
Abdessamad Derraz e0cbf35adc refactor: one selection for emulator pack entries
emulatorcheck and emulatorpack each expanded a profile, filtered it by
system, by --required-only and by region, and chose its archive units
and loose slots. emulator_pack_entries now does it once and both read
it. The --required-only spares are taken among the entries the pack
still carries, as their docstring says: the builder passed the
unnarrowed list, so an optional member of a required set could be kept
over a required one the pack ships. No profile has such a member today.
2026-11-21 21:42:19 +01:00
Abdessamad Derraz 0617598e21 fix: keep insights readings when one source fails
sitegen.insights raised SystemExit with CLI text from inside its fetch
functions: a GitHub rate limit after Search Console and GoatCounter had
been read ended the run with no report. It now raises SourceUnavailable,
also for a missing credential file. site_insights names the source in
the report and on stderr and exits 1. A damaged downloads snapshot is a
SourceUnreadable, read before any source is fetched.
2026-11-21 21:42:18 +01:00
Abdessamad Derraz e0339e2f20 fix: decide bundled files per setup on the site
comes_with_app called installed_with_emulator without a platform, so
hcl, cdogs, hurrican, ikemen, linapple, solarus and touchhle pages said
every file came with the app and printed no install command, while
install/batocera.json serves 667 hcl files. The route now asks per setup,
and a page naming no setup treats not_bundled_on files as files to get.
2026-11-21 21:42:18 +01:00
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