Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
08913c4a
Unverified
Commit
08913c4a
authored
6 months ago
by
Max Gautier
Browse files
Options
Downloads
Patches
Plain Diff
Don't use 'checksum' in the components names
parent
38dd224f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/download_hash.py
+13
-13
13 additions, 13 deletions
scripts/download_hash.py
with
13 additions
and
13 deletions
scripts/download_hash.py
+
13
−
13
View file @
08913c4a
...
...
@@ -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
=
{
c
omponent
:
{
v
for
v
in
github_versions
[
c
omponent
]
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
()))
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment