refactor: split crossref into its three subjects

FileConsumers, held_copy and entry_target move to packs/consumers.py, the
data/ and bios/ ZIP index to packs/supplemental.py, the launcher-name report
to packs/crossreflaunchers.py and the set-aside labels with
profile_breakdown to packs/crossreftext.py. The site no longer imports the
gap engine to learn who reads a file.
This commit is contained in:
Abdessamad Derraz committed 2026-11-23 21:02:44 +01:00
1 parent cdbde88017
commit 3344cfd2fb
35 files changed
+806 -768

No files matched your search

+2 -2
View File
@@ -304,7 +304,7 @@ class AMemberNameIsNotALooseFile(unittest.TestCase):
no archive member names, shipped nothing."""
def test_verify_reads_undeclared_files_as_the_builder_does(self):
from packs import crossref
from packs import supplemental
emulator_profiles_cache.clear()
root = Path(tempfile.mkdtemp())
@@ -324,7 +324,7 @@ class AMemberNameIsNotALooseFile(unittest.TestCase):
db = {"files": {}, "indexes": {"by_md5": {}, "by_name": {}, "by_crc32": {},
"by_path_suffix": {}}}
config = load_platform_config("fakeplat", str(root / "platforms"))
with mock.patch.object(crossref, "build_supplemental_index",
with mock.patch.object(supplemental, "build_supplemental_index",
lambda *a, **k: {"315-6146.bin"}):
result = verify_platform(config, db, str(root / "emulators"))
self.assertEqual(