Skip to content
Snippets Groups Projects
Unverified Commit 08913c4a authored by Max Gautier's avatar Max Gautier
Browse files

Don't use 'checksum' in the components names

parent 38dd224f
No related branches found
No related tags found
No related merge requests found
......@@ -176,7 +176,7 @@ def download_hash(only_downloads: [str]) -> None:
except InvalidVersion:
return None
github_versions = dict(zip([k + '_checksums' for k in downloads.keys()],
github_versions = dict(zip(downloads.keys(),
[
{
v for r in repo["releases"]["nodes"]
......@@ -188,8 +188,8 @@ def download_hash(only_downloads: [str]) -> None:
strict=True))
new_versions = {
component:
{v for v in github_versions[component]
c:
{v for v in github_versions[c]
if any(v > version and (v.major, v.minor) == (version.major, version.minor)
for version in [max(minors) for _, minors in groupby(cur_v, lambda v: (v.minor, v.major))])
# only get:
......@@ -198,7 +198,7 @@ def download_hash(only_downloads: [str]) -> None:
}
- set(cur_v)
for component, archs in data.items()
if component in [k + '_checksums' for k in downloads.keys()]
if (c := component.removesuffix('_checksums')) in downloads.keys()
# this is only to bound cur_v in the scope
and (cur_v := sorted(Version(k) for k in next(archs.values().__iter__()).keys()))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment