mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-23 20:29:06 -05:00
fix: credit platforms with the file the pack ships
FileConsumers resolved platform declarations with their destination as a hint, which the builder, the manifest and verify never pass. RetroBat's 63 mame/hash lists and the curated gc-ntsc-12.bin credited another copy than the one the manifests install.
This commit is contained in:
1 parent
2af9509ef4
commit
4ceca6acc5
2 files changed
+35
-1
No files matched your search
@@ -435,7 +435,11 @@ class FileConsumers:
|
||||
for name, config in configs.items():
|
||||
for system_id, system in config.get("systems", {}).items():
|
||||
for entry in system.get("files", []):
|
||||
sha1 = self.sha1_of(entry, entry.get("destination", ""))
|
||||
# No destination hint, as the builder, the manifest and
|
||||
# verify resolve a declaration: with one, RetroBat's 63
|
||||
# mame/hash lists credited another revision than the one
|
||||
# its manifest installs.
|
||||
sha1 = self.sha1_of(entry)
|
||||
if sha1:
|
||||
self.platforms.setdefault(sha1, set()).add(name)
|
||||
self.platform_systems.setdefault(sha1, {}).setdefault(
|
||||
|
||||
Reference in new issue
Block a user