Phase 30: complete configurable installation and release qualification
This commit is contained in:
parent
afc049e2c8
commit
90eac33a71
18 changed files with 399 additions and 59 deletions
|
|
@ -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__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue