Archive the raw transcript by content hash with its verdict, and stop on a failed archive #101

Merged
lilleman merged 5 commits from archive-transcript into rebuild 2026-09-28 17:07:56 +02:00
Showing only changes of commit 80a8e214b1 - Show all commits
+1 -1
View File
@@ -53,6 +53,6 @@ def archive(root, path, note, paths):
if not copy.exists():
for dest, data in ((copy.with_suffix(".verdict.md"), f"{note}\n".encode()), (copy, raw)):
if failure := replace_file(dest, data):
return Failure(f"could not archive the transcript: {failure.filename}: {failure.strerror}")
return Failure(f"could not archive the transcript: {dest}: {failure.strerror}")
print(f"transcript: {copy}", file=sys.stderr)
return None