From 8bf130bd5828ff2a2ebb942ca7f126e1c1f128c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Fri, 14 Jun 2024 11:22:40 +0200 Subject: [PATCH] Versions: Prefix external packages name --- github_app_geo_project/module/versions/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github_app_geo_project/module/versions/__init__.py b/github_app_geo_project/module/versions/__init__.py index 811c0f3de51..86b83b36b07 100644 --- a/github_app_geo_project/module/versions/__init__.py +++ b/github_app_geo_project/module/versions/__init__.py @@ -611,14 +611,15 @@ def _update_upstream_versions( transversal_status = context.transversal_status for external_config in context.module_config.get("external-packages", []): package = external_config["package"] + name = f"endoflife.date/{package}" datasource = external_config["datasource"] module_utils.manage_updated_separated( - transversal_status.updated, transversal_status.repositories, package + transversal_status.updated, transversal_status.repositories, name ) package_status: _TransversalStatusRepo = context.transversal_status.repositories.setdefault( - package, _TransversalStatusRepo() + name, _TransversalStatusRepo() ) package_status.url = f"https://endoflife.date/{package}" @@ -630,7 +631,6 @@ def _update_upstream_versions( return package_status.upstream_updated = datetime.datetime.now() - package_status.url = f"https://endoflife.date/{package}" response = requests.get(f"https://endoflife.date/api/{package}.json", timeout=10) if not response.ok: _LOGGER.error("Failed to get the data for %s", package)