Changed check_new_version to more lightweight format. Inform only, no download

This commit is contained in:
2026-06-16 15:04:53 +02:00
parent fc0d515a42
commit d0fd8e9996
3 changed files with 8 additions and 44 deletions
+5 -4
View File
@@ -2,10 +2,11 @@ import argparse
import configparser
import json
import sys
import os
import urllib.request
from pathlib import Path
INI_FILE = Path("latestversion.ini")
INI_FILE = Path("check_new_version.ini")
PYTHON_API = "https://endoflife.date/api/v1/products/python"
CAESIUM_API = "https://api.github.com/repos/Lymphatus/caesium-clt/tags"
@@ -79,7 +80,6 @@ def check_caesium(cfg, result):
)
})
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--yes", action="store_true")
@@ -104,10 +104,11 @@ def main():
for u in result["updates"]:
print(
f"{u['tool'].capitalize()}: aktuell genutzt {u['used']}, "
f"neu {u['latest']}, download?"
f"neu {u['latest']}"
)
print(f"{u['tool'].upper()}_DOWNLOAD={u['url']}")
print(f"{u['tool'].upper()}_LATEST_VERSION={u['latest']}")
if not u["maintained"]:
print(
f"WARNING: Achtung Version {u['latest']} "