mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 18:47:53 -06:00
refactor: name the recipe package romrecipes
This commit is contained in:
1 parent
05a6af5e97
commit
3bfd72ba7f
22 files changed
+53
-53
No files matched your search
@@ -7,7 +7,7 @@ member names and their contents.
|
||||
|
||||
That property makes it possible to rebuild a romset ZIP that matches an
|
||||
upstream-published hash exactly, and to identify which romset revision a
|
||||
published hash refers to (scripts/recipes/).
|
||||
published hash refers to (scripts/romrecipes/).
|
||||
|
||||
Usage:
|
||||
from core.torrentzip import build_torrentzip
|
||||
|
||||
File renamed without changes.
@@ -10,8 +10,8 @@ from pathlib import Path
|
||||
from core.hashing import compute_hashes
|
||||
from core.paths import REPO_ROOT
|
||||
from core.torrentzip import write_torrentzip, zlib_ng_version
|
||||
from recipes.ledger import is_archive_path
|
||||
from recipes.members import _member_sha1, _opener
|
||||
from romrecipes.ledger import is_archive_path
|
||||
from romrecipes.members import _member_sha1, _opener
|
||||
|
||||
|
||||
# --- build ------------------------------------------------------------------
|
||||
@@ -12,10 +12,10 @@ from typing import BinaryIO
|
||||
|
||||
from core.hashing import parse_hash_list
|
||||
from core.torrentzip import write_torrentzip, zlib_ng_version
|
||||
from recipes.ledger import database_archives
|
||||
from recipes.members import _member_sha1, _opener
|
||||
from recipes.pins import container_entries
|
||||
from recipes.romsets import collect_recipes, load_dat_recipes
|
||||
from romrecipes.ledger import database_archives
|
||||
from romrecipes.members import _member_sha1, _opener
|
||||
from romrecipes.pins import container_entries
|
||||
from romrecipes.romsets import collect_recipes, load_dat_recipes
|
||||
|
||||
_TORRENTZIP_COMMENT = b"TORRENTZIPPED-"
|
||||
|
||||
@@ -9,9 +9,9 @@ from collections import defaultdict
|
||||
from pathlib import Path
|
||||
|
||||
from core.torrentzip import is_torrentzip
|
||||
from recipes.pins import container_entries
|
||||
from recipes.pool import AtomPool
|
||||
from recipes.romsets import Recipe
|
||||
from romrecipes.pins import container_entries
|
||||
from romrecipes.pool import AtomPool
|
||||
from romrecipes.romsets import Recipe
|
||||
|
||||
|
||||
def identify_archive(
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -10,7 +10,7 @@ from pathlib import Path
|
||||
|
||||
from core.paths import REPO_ROOT
|
||||
from core.torrentzip import build_torrentzip
|
||||
from recipes.romsets import Recipe
|
||||
from romrecipes.romsets import Recipe
|
||||
|
||||
|
||||
class AtomPool:
|
||||
File renamed without changes.
@@ -22,7 +22,7 @@ An archive whose bytes carry metadata unrelated to its contents cannot be
|
||||
derived from ROMs by anyone, and is reported as such rather than guessed at.
|
||||
|
||||
Every archive the collection holds also has a recipe of its own in
|
||||
``recipes/archives.json`` (scripts/recipes/):
|
||||
``recipes/archives.json`` (scripts/romrecipes/):
|
||||
|
||||
``--capture``
|
||||
Write a record for every archive in database.json: members in order with
|
||||
@@ -54,12 +54,12 @@ from core.cli import require_directory
|
||||
from core.torrentzip import zlib_ng_version
|
||||
from model.database import load_database
|
||||
from model.profiles import load_emulator_profiles
|
||||
from recipes.build import AtomIndex, build_archive, select
|
||||
from recipes.capture import ZlibNgError, capture, container_pins, recipe_index
|
||||
from recipes.identify import identify_report, missing_report, write_reconstructions
|
||||
from recipes.ledger import ARCHIVES_FILE, load_ledger, write_ledger
|
||||
from recipes.pool import AtomPool, DIGEST_CACHE
|
||||
from recipes.romsets import collect_recipes, load_dat_recipes, merge_recipes
|
||||
from romrecipes.build import AtomIndex, build_archive, select
|
||||
from romrecipes.capture import ZlibNgError, capture, container_pins, recipe_index
|
||||
from romrecipes.identify import identify_report, missing_report, write_reconstructions
|
||||
from romrecipes.ledger import ARCHIVES_FILE, load_ledger, write_ledger
|
||||
from romrecipes.pool import AtomPool, DIGEST_CACHE
|
||||
from romrecipes.romsets import collect_recipes, load_dat_recipes, merge_recipes
|
||||
|
||||
|
||||
def print_missing(gap: dict) -> None:
|
||||
|
||||
@@ -11,7 +11,7 @@ from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
|
||||
from recipes import ledger
|
||||
from romrecipes import ledger
|
||||
import release_record
|
||||
from model import siteinputs
|
||||
from model.collection import _group_by_manufacturer, _slug
|
||||
|
||||
@@ -11,7 +11,7 @@ from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
from types import ModuleType
|
||||
|
||||
from recipes import ledger
|
||||
from romrecipes import ledger
|
||||
import pr_checks
|
||||
import release_record
|
||||
from core.artifacts import write_if_changed
|
||||
|
||||
@@ -21,7 +21,7 @@ import urllib.parse
|
||||
from collections.abc import Callable, Iterable
|
||||
from pathlib import Path
|
||||
|
||||
from recipes import ledger as recipes_ledger
|
||||
from romrecipes import ledger as romrecipes_ledger
|
||||
from resolve.layout import runs_standalone
|
||||
from model.profiles import unique_emulator_profiles
|
||||
from packs.crossref import _first_hash
|
||||
@@ -523,7 +523,7 @@ def _merge_named(records: dict[tuple, dict]) -> None:
|
||||
|
||||
def load_ledger(path: Path) -> list[dict]:
|
||||
"""The archive records of recipes/archives.json, empty when absent."""
|
||||
return list(recipes_ledger.load_ledger(path).values())
|
||||
return list(romrecipes_ledger.load_ledger(path).values())
|
||||
|
||||
|
||||
def page(total: int, known: int) -> str:
|
||||
|
||||
Reference in new issue
Block a user