docs: shorten the no-pack line of the notes

This commit is contained in:
Abdessamad Derraz committed 2026-11-10 11:51:42 +01:00
1 parent d5c2ba266f
commit f4446ab313
2 files changed
+3 -5

No files matched your search

+2 -4
View File
@@ -97,16 +97,14 @@ def without_pack(platforms_dir: str) -> list[str]:
def no_pack_paragraph(platforms_dir: str) -> list[str]:
"""One paragraph naming the setups served by the command alone. The
packs published are the most downloaded ones (wiki/release-process.md,
"Which platforms get a pack"). The command reads the install manifest,
which the pack builder writes from the same resolution as the pack."""
"Which platforms get a pack")."""
names = without_pack(platforms_dir)
if not names:
return []
listed = ", ".join(names[:-1]) + f" and {names[-1]}" if len(names) > 1 else names[0]
return [
("Only the most used setups have a pack, to keep the release small."
f" For {listed}, use the command above. It reads the same file list a pack"
" is built from."),
f" For {listed}, use the command above."),
"",
]
+1 -1
View File
@@ -319,7 +319,7 @@ class TheReleaseNotesNameTheSetupsWithoutAZip(unittest.TestCase):
self.assertIn(name, paragraph)
for name in ("RetroArch", "Batocera", "RomM"):
self.assertNotIn(f" {name},", paragraph)
self.assertIn("use the command above", paragraph)
self.assertTrue(paragraph.endswith("use the command above."))
self.assertLess(text.index("| Platform"), text.index(paragraph))
self.assertLess(text.index(paragraph), text.index("### What changed"))