diff --git a/modules/tile_gen/tile_gen_lib/btrfs.py b/modules/tile_gen/tile_gen_lib/btrfs.py index ce6fd35..089be79 100644 --- a/modules/tile_gen/tile_gen_lib/btrfs.py +++ b/modules/tile_gen/tile_gen_lib/btrfs.py @@ -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')