mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-21 03:09:08 -05:00
fix: write the MiSTer database on one line
The BiosDB is published as a single line of JSON without a final newline. Written with indent=2 it came out as 1499 changed lines for a database whose content had not changed, which would bury any real correction. It is now written in MiSTer's own form: an empty truth gives back the cached database byte for byte.
This commit is contained in:
1 parent
3ed5f68b82
commit
804534397f
2 files changed
+19
-1
No files matched your search
@@ -105,7 +105,9 @@ class Exporter(BaseExporter):
|
||||
if size:
|
||||
entry["size"] = size
|
||||
|
||||
return {_DB_NAME: json.dumps(database, indent=2, ensure_ascii=False) + "\n"}
|
||||
# MiSTer publishes the database as one line, without a final
|
||||
# newline: written with an indent it came out as 1499 changed lines.
|
||||
return {_DB_NAME: json.dumps(database, ensure_ascii=False)}
|
||||
|
||||
def validate(
|
||||
self,
|
||||
|
||||
Reference in new issue
Block a user