Commit Graph
11 Commits
Author SHA1 Message Date
Abdessamad Derraz 6d21a98342 docs: drop clause semicolons from three docstrings
test_prose_style named the comments in collection.record, resolve.reviewreport and romrecipes.build.
2026-11-21 15:47:20 +01:00
Abdessamad Derraz 48d88da168 refactor: move six command run modes to packages
generate_db, generate_games_index, download, romset_recipes, validate_pr and list_platforms keep only main and build_parser: the database build goes to collection.run, the games index run to games.run, the pack info and its no-pack message to release.packinfo, the capture and build runs to romrecipes.runs, the file selection to resolve.reviewfiles. Tests reach the moved code through those packages.
2026-11-21 15:47:20 +01:00
Abdessamad Derraz 0b91bc9e37 refactor: move the recipe runs into romrecipes 2026-11-21 14:59:03 +01:00
Abdessamad Derraz 74fcdd2bc5 refactor: read archive members in one place
core.ziptools.zip_members lists the name, size and crc32 of each member once per archive revision. The site lookup and cards, the gap report, the pack check, the romset importer, the recipe identification and build, provenance, derivations and the atom pool read it instead of opening each archive again.

Each reader also tested a .zip suffix and skipped the .variants/ copies (x.zip.1a2b3c4d): the site lookup listed no member of a copy, the gap report's member index never saw one, the pack check never compared a copy's members, and the pack builders copied a copy without its CRC test. They now use is_archive_path. The inner ROM index of the resolver reads copies too, and a copy answers only for a member no primary holds.
2026-11-21 10:30:40 +01:00
Abdessamad Derraz f10fa21d17 docs: split clause semicolons in new comments 2026-11-21 06:45:11 +01:00
Abdessamad Derraz 3f33b1c247 refactor: read recipe snapshots in one place 2026-11-21 06:02:44 +01:00
Abdessamad Derraz b9441c545d fix: read variant zip copies as archives 2026-11-21 06:02:28 +01:00
Abdessamad Derraz eebe6a66c3 refactor: one torrentzip comment test for capture 2026-11-21 06:02:01 +01:00
Abdessamad Derraz 3853ca2f1c refactor: public names for cross-module reads 2026-11-18 22:59:51 +01:00
Abdessamad Derraz 2c8a9cfad8 refactor: one digest loop for files and streams 2026-11-18 21:42:28 +01:00
Abdessamad Derraz 3bfd72ba7f refactor: name the recipe package romrecipes 2026-11-18 20:20:46 +01:00