mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 21:43:23 -05:00
fix: write artifacts whole or not at all
This commit is contained in:
1 parent
53bd42b2f4
commit
f47088fe37
4 files changed
+105
-10
No files matched your search
@@ -24,6 +24,7 @@ import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
import split_pack
|
||||
from common import write_text_atomic
|
||||
|
||||
RECORD = "release.json"
|
||||
|
||||
@@ -124,7 +125,7 @@ def main() -> int:
|
||||
print(f"Error: {line}", file=sys.stderr)
|
||||
if mismatches:
|
||||
return 1
|
||||
args.output.write_text(json.dumps(record, indent=2) + "\n", encoding="utf-8")
|
||||
write_text_atomic(str(args.output), json.dumps(record, indent=2) + "\n")
|
||||
print(f"Wrote {args.output}")
|
||||
return 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user