fix: give unsourceable gap rows their destination

This commit is contained in:
Abdessamad Derraz committed 2026-11-24 03:38:59 +01:00
1 parent 2e80ad0211
commit c86a9abc83
2 files changed
+4

No files matched your search

+2
View File
@@ -466,6 +466,8 @@ class _ProfileComparison:
self.fate(f, "unsourceable")
row = {
"name": fname,
# Where the file goes once found, as a gap row says it.
"path": effective_path,
"required": f.get("required", False),
"reason": unsourceable_reason,
"source_ref": f.get("source_ref", ""),
+2
View File
@@ -481,6 +481,8 @@ class TheGapCategoryTravelsOnTheRow(unittest.TestCase):
self.assertEqual(rows["a.bin"]["destination"], "emu/a.bin")
self.assertEqual(rows["a.bin"]["category"], "game_data")
self.assertEqual(rows["b.o2r"]["category"], "game_data")
# Unsourceable, it still says where it goes once found.
self.assertEqual(rows["b.o2r"]["destination"], "emu/b.o2r")
self.assertEqual(rows["set.zip"]["category"], "bios_zip")
self.assertNotIn("_profile_categories", script_source("generate_site.py"))