Commit Graph
122 Commits
Author SHA1 Message Date
Abdessamad Derraz 95cbb5af1d fix: read archive members under the collection 2026-11-24 03:38:59 +01:00
Abdessamad Derraz 0e5b451b14 refactor: manifest reads the one pack scope 2026-11-24 03:38:59 +01:00
Abdessamad Derraz c86a9abc83 fix: give unsourceable gap rows their destination 2026-11-24 03:38:59 +01:00
Abdessamad Derraz 2e80ad0211 fix: count unsourceable core files as verify does 2026-11-24 03:38:59 +01:00
Abdessamad Derraz 94fbf8d386 fix: carry each gap row's category from crossref 2026-11-24 03:38:59 +01:00
Abdessamad Derraz 6e44a93156 refactor: carry platform launches as a dataclass
standalone_set returned one string set mixing standalone names with ten
JSON-tagged record kinds that every reader re-decoded. platform_launches
now returns a frozen PlatformLaunches (resolve/launches.py) with typed
fields, runs_standalone, is_dual, system_file_index and merged, which
_build_layouts and packprobe share.
2026-11-24 02:18:53 +01:00
Abdessamad Derraz d3b741e423 refactor: drop the unused slot conflict line 2026-11-24 02:18:40 +01:00
Abdessamad Derraz b490d0f407 fix: slots --json reports the file the pack serves 2026-11-24 02:18:40 +01:00
Abdessamad Derraz d355649bc3 fix: narrowed manifests skip standalone layouts 2026-11-24 02:18:40 +01:00
Abdessamad Derraz e51dc14d7b refactor: one writer for the instructions note 2026-11-24 01:14:04 +01:00
Abdessamad Derraz dfc1860d0d fix: record a data tree's version beside its cache 2026-11-24 01:14:04 +01:00
Abdessamad Derraz 8ac5cc348b fix: group emulator region files like platforms 2026-11-24 01:14:04 +01:00
Abdessamad Derraz 7000335825 fix: gap report names the platforms a file needs
The gaps page decided again which platforms a missing file affects,
without installed_on and not_bundled_on. whole_tree_gaps now records
them on each missing row with the per-platform rules (build layout,
mode, unread_on, installed_with_emulator), and the page renders them.
2026-11-24 01:14:04 +01:00
Abdessamad Derraz 38f81892ee refactor: one installed-everywhere rule for needs 2026-11-24 00:20:03 +01:00
Abdessamad Derraz dcdaa77ad6 refactor: count the discrepancies the body prints 2026-11-24 00:20:03 +01:00
Abdessamad Derraz 226433bac2 fix: hold a directory by its members alone 2026-11-24 00:20:03 +01:00
Abdessamad Derraz 0be045f95b fix: name an unreadable nested archive as cause 2026-11-24 00:20:03 +01:00
Abdessamad Derraz 82cb80d554 refactor: one whole-tree gap report for both 2026-11-24 00:20:03 +01:00
Abdessamad Derraz dedbde7917 fix: pack readme reads the guides of its run
model.guides took its platforms folder from the site's inputs, so a pack built with --platforms-dir printed the manual and install commands of the repository's guides. The loaders now take the folder (or the install address) explicitly; sitegen.guidedata binds them to the site's inputs, the pack README to the run's platforms folder, the release notes and the site validation to the folder they were given.
2026-11-23 23:07:45 +01:00
Abdessamad Derraz 46e6b94171 fix: one rule for where a standalone app reads
The site kept a table of entries the app reads outside data_root and the
installer never read it: the manifests copied Cemu's shared fonts, the
Amiberry ROMs and the YAPS2 resources to folders the apps do not open.
The facts now live in each profile as outside_data_root with their
source_ref, and resolve.layout.data_root_place answers for both.

Rows that changed no place were dropped (citra, ymir, cxbx-reloaded,
ppsspp-1.5.4, hatari, the DEV9 files of aethersx2 and armsx2), and the
fsuae row predated its ROMs/Kickstarts standalone_path, which the
launcher walks: its page now gives that folder, as the installer does.
2026-11-23 23:07:32 +01:00
Abdessamad Derraz 9491c02887 refactor: read tree members the build recorded 2026-11-23 21:02:47 +01:00
Abdessamad Derraz 5271984e8e refactor: build pack commands with install_command
The pack README spelled both bootstrap one-liners itself, eight times,
so a change to how options reach the bootstrap would have left every pack
on the old command. It now asks install_command, like the site and the
release notes.
2026-11-23 21:02:46 +01:00
Abdessamad Derraz e8b3cef5d5 fix: read the platform guides on first use
model.guides read and checked _registry.yml and _guides.yml at import,
from the repository: a pack build died on a registry entry without a guide
before parsing its options, and a site run on another platforms folder
took the repository's guides. The guides now load on first use, keyed on
siteinputs.current().platforms, behind accessor functions.
2026-11-23 21:02:46 +01:00
Abdessamad Derraz d6abe6fd95 fix: name why an external download failed
download_external returns an ExternalFetch outcome instead of printing and returning a bare bool, so the pack report names the real cause. lookup_hashes resolves offline and counts a release asset as held without downloading it.
2026-11-23 21:02:46 +01:00
Abdessamad Derraz 5b3f0c3f4c fix: settle a platform declaration in one place
The pack builder and the manifest each coded the copy a declaration
ships: resolve, agnostic substitute, frontend verdict, then the cores'
choice. The builder skipped the cores' choice once an earlier
declaration of the path was refused, and shipped the copy the name found
while the installer placed the variant the core accepts.
DeclarationJudge in packs/declsettle.py now settles it for both, and the
cores choose on every copy shipped.
2026-11-23 21:02:46 +01:00
Abdessamad Derraz d2f4ef6f9c fix: place hash-selected files like the platform
The hash-selected pack decided a declaration's place with a string
prefix test on base_destination, so Batocera's bios_CD_U.bin and
bios7.bin stayed at the root of the pack while scph5501.bin went under
bios/. platform_destination in packs/paths.py now places a platform
declaration for the platform pack, the manifest and the --from-md5 pack.
2026-11-23 21:02:46 +01:00
Abdessamad Derraz 3344cfd2fb refactor: split crossref into its three subjects
FileConsumers, held_copy and entry_target move to packs/consumers.py, the
data/ and bios/ ZIP index to packs/supplemental.py, the launcher-name report
to packs/crossreflaunchers.py and the set-aside labels with
profile_breakdown to packs/crossreftext.py. The site no longer imports the
gap engine to learn who reads a file.
2026-11-23 21:02:44 +01:00
Abdessamad Derraz acdce07ea5 fix: give the gaps page accepted hashes as data
Verify details now hold the values a refused hash check accepts, so the
gaps page no longer parses them out of the mismatch message.
2026-11-23 21:02:27 +01:00
Abdessamad Derraz 0757698063 refactor: one owner for a launcher emulator list
The comma-joined emulator field of a launcher record was written in
eleven places and read in nine, four of them splitting on ", " with no
strip. model.launcherrecords joins and splits it, and every scraper,
resolve and packs reader goes through it.
2026-11-23 21:02:27 +01:00
Abdessamad Derraz 74c59ad3b9 fix: read installed_on from the run's profiles 2026-11-22 02:26:45 +01:00
Abdessamad Derraz a39b1c25f3 fix: choose a release asset by one rule
resolve_file picked and fetched a release asset in one step, and verify re-derived the choice in pending_release_asset, which refused any record whose size differed from a declared size. fbneo's donpachi, sfz3mix and twotiger samples declare an approximate size with no validation: an online build shipped them while verify reported them missing.

release_asset_paths now chooses on the database record under the rules declared_hash_verdict applies to bytes, and both the builder and verify call it. The builder then fetches that revision and holds its bytes to the declaration.
2026-11-22 02:26:45 +01:00
Abdessamad Derraz d8570c6480 refactor: build platform packs without printing
build_platform_pack and build_split_packs return what the build came to and print nothing. print_platform_pack holds the report lines, and generate_pack and generate_split_packs compose the two. The variant choice, the plan and the data directory pass return their notices instead of printing them. The callers that silenced stdout to get a record now call the builder.
2026-11-22 02:26:45 +01:00
Abdessamad Derraz 8d93c8979e refactor: share the data trees of an emulator pack
carried_trees and claimed_tree_files in datatrees decide which trees an
emulator pack carries and where, and walk them under the cache lock.
The builder writes what they yield and verify records it, instead of
two copies of the selection and an unlocked walk on the verify side.
2026-11-22 02:26:44 +01:00
Abdessamad Derraz ad37a73964 refactor: let verify_emulator raise a bad name
verify_emulator and verify_system raised SystemExit from a library: the
verify command now prints and exits, and the pipeline's emulator pack
comparison no longer selects the profiles a second time to avoid it.
2026-11-22 02:26:44 +01:00
Abdessamad Derraz 7baeb6475c fix: one execute bit rule for pack and manifest
The pack read the git mode and the manifest the file header, so 833
archives extracted 755 from a pack and 644 from install.py, and 75
programs the reverse. packs.executable decides for both. Data tree
members stay 644 as the installer writes them, and the launcher
archives keep the mode ports/ commits.
2026-11-22 00:58:05 +01:00
Abdessamad Derraz 357153eaa3 fix: bound data directory zip extraction
The refresh fetched, filtered and extracted in one function and copied
ZIP members with no size, ratio or duplicate path check. Extraction now
lives in packs/datadirextract.py as local functions, the ZIP side on
safe_extract_zip, which gains a member select hook and returns the file
count. Tests read the member rules on local archives.
2026-11-22 00:58:05 +01:00
Abdessamad Derraz 5e7593b3bf fix: count gap sources once for page and text 2026-11-22 00:58:05 +01:00
Abdessamad Derraz 5dbd2df9ec fix: one rule for a file every setup installs 2026-11-22 00:58:05 +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 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 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 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 1b597ae510 fix: tell same-system twin declarations apart
Two declarations of one system on one path (RetroDECK's decocass.zip
for MAME and for FBNeo, both arcade) read "declared for arcade and for
arcade". The message names each side by the platform's own system, and
by the hash the path holds when that is the same too.
2026-11-21 21:04:19 +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