mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
add SHA256SUMS
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user