mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-14 05:53:47 -06:00
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:
1 parent
7d99685ce1
commit
35be4cf033
4 files changed
+12
-9
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user