From c46ab6bed710dcb1f7bc7d86f9100a2ce7b33655 Mon Sep 17 00:00:00 2001
From: nrb <freifunk@nicoboehr.de>
Date: Wed, 15 Jun 2022 18:39:10 +0200
Subject: [PATCH] use full version number as foldername

This shows the gluon and site commit as part of the foldername. That's
what Gluon has as its version number. This enables providing an opkg
feed.
---
 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 05c3043..d126b83 100755
--- a/download-latest-firmware-build.py
+++ b/download-latest-firmware-build.py
@@ -31,7 +31,7 @@ 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_matches = version_regex.match(filename)
             if version_matches:
-                logging.debug("Found version number {}".format(version_matches.group(2)))
+                logging.debug("Found version number {}".format(version_matches.group(1)))
                 return version_matches.group(2)
     raise ValueError("Could not determine version from ZIP file")
 
-- 
GitLab