add SHA256SUMS

This commit is contained in:
Zsolt Ero
2024-09-24 13:55:12 +02:00
parent 876788a490
commit 0c20012d44

View File

@@ -56,10 +56,6 @@ def make_btrfs(run_folder: Path):
stderr=err,
)
# remove mbtiles, only keep the btrfs file
# disabled for now, saving both files currently
# os.unlink('tiles.mbtiles')
shutil.copy('mnt_rw/extract/osm_date', '.')
# process logs
@@ -125,6 +121,14 @@ def make_btrfs(run_folder: Path):
for file in Path().glob(pattern):
shutil.move(file, 'logs')
# create a checksum file, Ubuntu style naming convention
with open('SHA256SUMS', 'w') as out:
subprocess.run(
['sha256sum', 'tiles.btrfs.gz', 'tiles.mbtiles'],
check=True,
stdout=out,
)
print('extract_btrfs.py DONE')