mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 22:38:54 -06:00
refactor: drop the unused catalog line of readme
This commit is contained in:
1 parent
3abe6862e2
commit
619f44d657
1 file changed
-21
@@ -19,7 +19,6 @@ from core.paths import DB_FILE, REPO_ROOT
|
||||
from core.sizes import size_text
|
||||
from core import upstream
|
||||
from installer_build.module import installer_module
|
||||
from model.composition import compute_composition, count_catalog_matched
|
||||
from model.guides import PACKAGE_COMMAND
|
||||
from sitegen.guidedata import install_command
|
||||
from model.largefiles import load_registered_paths
|
||||
@@ -178,26 +177,6 @@ def fetch_contributors() -> list[dict]:
|
||||
]
|
||||
|
||||
|
||||
_CATALOG_LABELS = {"redump": "Redump", "no-intro": "No-Intro", "tosec": "TOSEC"}
|
||||
|
||||
|
||||
def _catalog_matched_line(db: dict) -> list[str]:
|
||||
"""Bullet line for files matched to dump-preservation catalogs."""
|
||||
matched = count_catalog_matched(db)
|
||||
if not matched:
|
||||
return []
|
||||
sources: set[str] = set()
|
||||
for entry in db.get("files", {}).values():
|
||||
sources.update(entry.get("provenance") or ())
|
||||
system_files = compute_composition(db)["systems"]["files"]
|
||||
labels = ", ".join(_CATALOG_LABELS.get(s, s) for s in sorted(sources))
|
||||
return [
|
||||
f"- **{matched:,} of {system_files:,} system files** matched to"
|
||||
f" dump-preservation catalogs ({labels}). Arcade sets and engine data"
|
||||
f" fall outside what those catalogs index"
|
||||
]
|
||||
|
||||
|
||||
# The badge row under the links: (alt text, image, link). A badge earns its
|
||||
# place by saying what the page does not: the Python floor is in the install
|
||||
# text, and GitHub cannot name the license of LICENSE, which opens on its scope.
|
||||
|
||||
Reference in new issue
Block a user