feat: commit the corrected file of each platform

exports/ now holds the twelve platforms' own files, corrected, with a
report of every change, read by the site's corrected files page. Two
summaries are reworded for the page: an addition the format cannot
carry is counted as left out, and RetroPie names each skipped package
by sentence instead of joining reasons with semicolons. Its parser no
longer reads "e.g" as a file name.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 09:26:12 +02:00
1 parent b3b3880c19
commit b6a1304893
39 files changed
+32056 -7

No files matched your search

+4 -4
View File
@@ -374,9 +374,9 @@ class LandedChanges:
requirements: int = 0
def _count(number: int, noun: str) -> str:
def _count(number: int, noun: str, plural: str = "") -> str:
""""1 hash", "2 hashes": a count with its noun in the right number."""
plural = noun + ("es" if noun.endswith(("sh", "ch", "s", "x")) else "s")
plural = plural or noun + ("es" if noun.endswith(("sh", "ch", "s", "x")) else "s")
return f"{number} {noun if number == 1 else plural}"
@@ -529,9 +529,9 @@ def export_platform(
if cleared:
summary += f", {_count(len(cleared), 'hash')} cleared"
if refused:
summary += f", {refused} the format cannot state"
summary += f", {_count(refused, 'addition')} left out"
if lost:
summary += f", {lost} of theirs dropped"
summary += f", {_count(lost, 'entry', 'entries')} of theirs the format drops"
withheld = exporter.withheld()
if withheld:
summary += f", {_count(len(withheld), 'correction')} withheld"