From d0f1ae0185ea72bf0a7f70df19885fa2f62c56f1 Mon Sep 17 00:00:00 2001 From: nrb <freifunk@nicoboehr.de> Date: Thu, 16 Jun 2022 20:29:09 +0200 Subject: [PATCH] remove useless - at end of version --- download-latest-firmware-build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download-latest-firmware-build.py b/download-latest-firmware-build.py index 9e1f6b1..952bbed 100755 --- a/download-latest-firmware-build.py +++ b/download-latest-firmware-build.py @@ -25,10 +25,10 @@ ap.add_argument("--branch", help="Download only builds of this branch") args = ap.parse_args() 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: if file.filename.startswith("gluon/output/images"): 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) if version_matches: version = version_matches.group(1) -- GitLab