1
0
Fork 0
forked from hanez/xtc

Phase 30: complete configurable installation and release qualification

This commit is contained in:
Johannes Findeisen 2026-10-27 17:13:09 +01:00
commit 90eac33a71
18 changed files with 399 additions and 59 deletions

View file

@ -2,6 +2,7 @@
"""Deterministic source archive using indexed files, or an exported manifest."""
import argparse
import gzip
import hashlib
import io
import json
import os
@ -70,7 +71,9 @@ def archive(root, output):
finally:
if os.path.exists(temporary):
os.unlink(temporary)
print(output)
sha = hashlib.sha256(output.read_bytes()).hexdigest()
output.with_name(output.name + '.sha256').write_text(f'{sha} {output.name}\n')
print(f'{output}: {sha}')
if __name__ == '__main__':