host_manager

This commit is contained in:
Zsolt Ero
2024-01-03 16:21:23 +01:00
parent 57b86626a5
commit 5d0b165c99
4 changed files with 18 additions and 17 deletions

View File

@@ -4,6 +4,7 @@ import sys
from pathlib import Path
import click
from http_host_lib.utils import download_file_aria2
@@ -12,12 +13,12 @@ def download_and_extract_tileset(area: str, version: str, runs_dir: Path) -> boo
returns True if downloaded something
"""
click.echo(f'Downloading: area: {area}, version: {version}')
click.echo(f'downloading area: {area}, version: {version}')
version_dir = runs_dir / area / version
btrfs_file = version_dir / 'tiles.btrfs'
if btrfs_file.exists():
print('File exists, skipping download')
print(' file exists, skipping download')
return False
temp_dir = runs_dir / '_tmp'