Skip to content
Snippets Groups Projects
Unverified Commit d0f1ae01 authored by Nico's avatar Nico
Browse files

remove useless - at end of version

parent 4dcbaa58
No related branches found
No related tags found
No related merge requests found
...@@ -25,10 +25,10 @@ ap.add_argument("--branch", help="Download only builds of this branch") ...@@ -25,10 +25,10 @@ ap.add_argument("--branch", help="Download only builds of this branch")
args = ap.parse_args() args = ap.parse_args()
def find_version_from_archive(archive_file_list): 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]+)-')
for file in archive_file_list: for file in archive_file_list:
if file.filename.startswith("gluon/output/images"): if file.filename.startswith("gluon/output/images"):
filename = os.path.basename(file.filename) filename = os.path.basename(file.filename)
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:
version = version_matches.group(1) version = version_matches.group(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment