From 8ac0bdafdb00abe8578754e7362eac8f6b2a5890 Mon Sep 17 00:00:00 2001 From: Sid <sidneyjohn23@kuyateh.eu> Date: Wed, 18 Dec 2024 14:48:47 +0000 Subject: [PATCH] Allow verisons with patch version number as well --- 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 10e4974..44e4c59 100755 --- a/download-latest-firmware-build.py +++ b/download-latest-firmware-build.py @@ -25,7 +25,7 @@ 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]+)-') + version_regex = re.compile(r'gluon-ffs-(((experimental|[0-9]+\.[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) -- GitLab