Support project using alternates names for arch

(the url should use `alt_arch` instead of `arch` for those)
This commit is contained in:
Max Gautier
2024-12-20 15:35:36 +01:00
parent 9334bc1fee
commit 3a44411aa1

View File

@@ -89,6 +89,14 @@ downloads = {
'graphql_id': "R_kgDOApOQGQ" 'graphql_id': "R_kgDOApOQGQ"
}, },
} }
arch_alt_name = {
"amd64": "x86_64",
"arm64": "aarch64",
"ppc64le": None,
"arm": None,
}
# TODO: downloads not supported # TODO: downloads not supported
# youki: no checkusms in releases # youki: no checkusms in releases
# kata: no checksums in releases # kata: no checksums in releases
@@ -214,7 +222,8 @@ def download_hash(only_downloads: [str]) -> None:
downloads[component]['url'].format( downloads[component]['url'].format(
version = version, version = version,
os = "linux", os = "linux",
arch = arch arch = arch,
alt_arch = arch_alt_name[arch],
), ),
allow_redirects=True) allow_redirects=True)
hash_file.raise_for_status() hash_file.raise_for_status()