From c86a9abc833f1f3a9d89d679ca6f9777a749983c Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 24 Nov 2026 03:15:05 +0100 Subject: [PATCH] fix: give unsourceable gap rows their destination --- scripts/packs/crossref.py | 2 ++ tests/test_site_exports.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/packs/crossref.py b/scripts/packs/crossref.py index 7f2f6f5f2..5c53b8d92 100644 --- a/scripts/packs/crossref.py +++ b/scripts/packs/crossref.py @@ -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", ""), diff --git a/tests/test_site_exports.py b/tests/test_site_exports.py index 998bb189e..294fe9315 100644 --- a/tests/test_site_exports.py +++ b/tests/test_site_exports.py @@ -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"))