Adapt download.py to run as a package script

This commit is contained in:
Max Gautier
2025-01-11 15:47:07 +01:00
parent ba3258d7f0
commit a551922c84

View File

@@ -318,6 +318,10 @@ def download_hash(only_downloads: [str]) -> None:
yaml.dump(data, checksums_yml)
logger.info("Updated %s", CHECKSUMS_YML)
def main():
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
parser = argparse.ArgumentParser(description=f"Add new patch versions hashes in {CHECKSUMS_YML}",
formatter_class=argparse.RawTextHelpFormatter,
epilog=f"""