Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Firmware Downloader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Firmware Downloader
Commits
4dcbaa58
Unverified
Commit
4dcbaa58
authored
2 years ago
by
Nico
Browse files
Options
Downloads
Patches
Plain Diff
fix version number
parent
c46ab6be
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
download-latest-firmware-build.py
+3
-2
3 additions, 2 deletions
download-latest-firmware-build.py
with
3 additions
and
2 deletions
download-latest-firmware-build.py
+
3
−
2
View file @
4dcbaa58
...
@@ -31,8 +31,9 @@ def find_version_from_archive(archive_file_list):
...
@@ -31,8 +31,9 @@ def find_version_from_archive(archive_file_list):
version_regex
=
re
.
compile
(
r
'
gluon-ffs-(((experimental|[0-9]+\.[0-9])+[+][0-9]{4}-[0-9]{2}-[0-9]{2})-g\.[a-f0-9]+-s\.[a-f0-9]+-)
'
)
version_regex
=
re
.
compile
(
r
'
gluon-ffs-(((experimental|[0-9]+\.[0-9])+[+][0-9]{4}-[0-9]{2}-[0-9]{2})-g\.[a-f0-9]+-s\.[a-f0-9]+-)
'
)
version_matches
=
version_regex
.
match
(
filename
)
version_matches
=
version_regex
.
match
(
filename
)
if
version_matches
:
if
version_matches
:
logging
.
debug
(
"
Found version number {}
"
.
format
(
version_matches
.
group
(
1
)))
version
=
version_matches
.
group
(
1
)
return
version_matches
.
group
(
2
)
logging
.
debug
(
"
Found version number {}
"
.
format
(
version
))
return
version
raise
ValueError
(
"
Could not determine version from ZIP file
"
)
raise
ValueError
(
"
Could not determine version from ZIP file
"
)
def
extract_zip
(
artifact_zipfile
):
def
extract_zip
(
artifact_zipfile
):
...
...
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