From 3a44411aa1aa67df4a983702d7364cd854d66a93 Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Fri, 20 Dec 2024 15:35:36 +0100 Subject: [PATCH] Support project using alternates names for arch (the url should use `alt_arch` instead of `arch` for those) --- scripts/download_hash.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/download_hash.py b/scripts/download_hash.py index be55a714c..5a7508966 100644 --- a/scripts/download_hash.py +++ b/scripts/download_hash.py @@ -89,6 +89,14 @@ downloads = { 'graphql_id': "R_kgDOApOQGQ" }, } + +arch_alt_name = { + "amd64": "x86_64", + "arm64": "aarch64", + "ppc64le": None, + "arm": None, +} + # TODO: downloads not supported # youki: no checkusms in releases # kata: no checksums in releases @@ -214,7 +222,8 @@ def download_hash(only_downloads: [str]) -> None: downloads[component]['url'].format( version = version, os = "linux", - arch = arch + arch = arch, + alt_arch = arch_alt_name[arch], ), allow_redirects=True) hash_file.raise_for_status()