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
c94daa4f
Unverified
Commit
c94daa4f
authored
6 months ago
by
Max Gautier
Browse files
Options
Downloads
Patches
Plain Diff
download: Update yaml data with new hashes
parent
5be81553
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
+19
-0
19 additions, 0 deletions
scripts/download_hash.py
with
19 additions
and
0 deletions
scripts/download_hash.py
+
19
−
0
View file @
c94daa4f
...
...
@@ -184,6 +184,10 @@ def download_hash(only_downloads: [str]) -> None:
],
strict
=
True
))
components_supported_arch
=
{
component
.
removesuffix
(
'
_checksums
'
):
[
a
for
a
in
archs
.
keys
()]
for
component
,
archs
in
data
.
items
()
}
new_versions
=
{
c
:
{
v
for
v
in
github_versions
[
c
]
...
...
@@ -216,6 +220,21 @@ def download_hash(only_downloads: [str]) -> None:
return
(
hash_file
.
content
.
decode
().
split
()[
0
])
for
component
,
versions
in
new_versions
.
items
():
c
=
component
+
'
_checksums
'
for
arch
in
components_supported_arch
[
component
]:
for
version
in
versions
:
data
[
c
][
arch
][
str
(
version
)]
=
f
"
{
downloads
[
component
].
get
(
'
hashtype
'
,
'
sha256
'
)
}
:
{
get_hash
(
component
,
version
,
arch
)
}
"
data
[
c
]
=
{
arch
:
{
v
:
versions
[
v
]
for
v
in
sorted
(
versions
.
keys
(),
key
=
Version
,
reverse
=
True
)
}
for
arch
,
versions
in
data
[
c
].
items
()
}
with
open
(
CHECKSUMS_YML
,
"
w
"
)
as
checksums_yml
:
yaml
.
dump
(
data
,
checksums_yml
)
...
...
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