Skip to content

Commit

Permalink
Versions: Prefix external packages name
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 14, 2024
1 parent 8b538fc commit 8bf130b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions github_app_geo_project/module/versions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand All @@ -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)
Expand Down

0 comments on commit 8bf130b

Please sign in to comment.