fix: read catalog coverage under the database

This commit is contained in:
Abdessamad Derraz committed 2026-11-24 02:19:13 +01:00
1 parent b350c21329
commit 02c33be3b5
16 files changed
+129 -52

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ from pathlib import Path
from core.hashing import compute_hashes
from core.torrentzip import write_torrentzip, zlib_ng_version
from core.ziptools import is_archive_path, zip_members
from romrecipes.collection import on_disk
from model.dbpaths import on_disk
from romrecipes.members import member_sha1, member_opener
+1 -1
View File
@@ -13,7 +13,7 @@ from typing import BinaryIO
from core.hashing import parse_hash_list
from core.torrentzip import has_torrentzip_comment, write_torrentzip, zlib_ng_version
from romrecipes.collection import on_disk
from model.dbpaths import on_disk
from romrecipes.ledger import database_archives, load_ledger, write_ledger
from romrecipes.members import member_sha1, member_opener
from romrecipes.pins import container_entries
-15
View File
@@ -1,15 +0,0 @@
"""Where a database.json path lands on disk: under the folder that holds the BIOS tree."""
from __future__ import annotations
from pathlib import Path
def collection_root(bios_dir: Path) -> Path:
"""The folder database paths (``bios/...``) are relative to: *bios_dir*'s parent."""
return bios_dir.resolve().parent
def on_disk(root: Path, path: str) -> Path:
"""The file a database *path* names under *root*. An absolute path stays as written."""
return root / path
+1 -1
View File
@@ -10,7 +10,7 @@ from pathlib import Path
from core.torrentzip import is_torrentzip
from core.ziptools import zip_members
from romrecipes.collection import on_disk
from model.dbpaths import on_disk
from romrecipes.pins import container_entries
from romrecipes.pool import AtomPool
from romrecipes.romsets import Recipe
+1 -1
View File
@@ -11,7 +11,7 @@ from pathlib import Path
from core.paths import REPO_ROOT
from core.torrentzip import build_torrentzip, writer_identity, zlib_ng_version
from core.ziptools import is_archive_path, zip_members
from romrecipes.collection import collection_root, on_disk
from model.dbpaths import collection_root, on_disk
from romrecipes.romsets import Recipe
+1 -1
View File
@@ -9,7 +9,7 @@ from pathlib import Path
from core.torrentzip import zlib_ng_version
from romrecipes.build import AtomIndex, BuildTally, build_records, build_targets
from romrecipes.capture import ZlibNgError, capture_ledger
from romrecipes.collection import collection_root
from model.dbpaths import collection_root
from romrecipes.ledger import load_ledger
from romrecipes.text import print_build_result, print_build_totals, print_capture