feat: name the romset that carries a wanted dump

17 TOSEC ZX Spectrum ROMs reported missing ship inside MAME's spectrum.zip from 0.190 to 0.289, while the collection holds only FBNeo's one-member archive of that name. provenance_report --missing and the site's wanted list now name the set, the member and the versions, matched by crc32 and size and by sha1 where both sides carry one.
This commit is contained in:
Abdessamad Derraz committed 2026-10-19 08:29:31 +02:00
1 parent 53f9746bfa
commit eafb73bf55
3 files changed
+136 -1

No files matched your search

+9
View File
@@ -2091,6 +2091,9 @@ def load_derivable(path: str = "derivable.json") -> dict[str, dict]:
return {}
_ROMSET_SOURCES = {"mame": "MAME", "fbneo": "FBNeo"}
def generate_provenance_page(
db: dict, report: dict, derivable: dict[str, dict] | None = None
) -> str:
@@ -2228,6 +2231,12 @@ def generate_provenance_page(
# A pipe in catalog text would split the markdown table row
name = entry["name"].replace("|", "-")
desc = (entry.get("description") or "").replace("|", "-")
# Where an emulator's romset already carries the dump.
for hit in entry.get("romsets", []):
desc += (
f" Ships in {_ROMSET_SOURCES.get(hit['source'], hit['source'])} "
f"`{hit['archive']}` as `{hit['member']}`."
)
lines.append(f" | `{name}` | {desc} | `{sha1}` |")
lines.append("")