fix: compare whole md5 in the folder check

check_platform_folder.py, the script the site publishes, still accepted
a cut md5 by prefix. It now compares whole digests as Batocera does
(batocera-systems:1088), like verify since cut_md5_owner.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 16:01:04 +01:00
1 parent 7d99685ce1
commit 35be4cf033
4 files changed
+12 -9

No files matched your search

+2 -1
View File
@@ -658,10 +658,11 @@ class ShortMd5Handling(unittest.TestCase):
scraper = inspect.getsource(batocera_scraper)
self.assertIn("_resolve_truncated_md5(value, md5_index) for value in values", scraper)
resolver = inspect.getsource(common.resolve_local_file)
self.assertIn("if len(md5_candidate) < 32:", resolver)
self.assertIn("cut_md5_owner(cut, by_md5)", resolver)
self.assertIn("_md5_name_ok(path)", resolver)
section = _section(_page("verification-modes.md"), "MD5 shorter than 32 characters (Batocera)")
self.assertIn("_resolve_truncated_md5", section)
self.assertIn("cut_md5_owner", section)
class RegistryKeysDocumented(unittest.TestCase):