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

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.
parent 12974582
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ def find_version_from_archive(archive_file_list): ...@@ -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_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(2))) logging.debug("Found version number {}".format(version_matches.group(1)))
return version_matches.group(2) return version_matches.group(2)
raise ValueError("Could not determine version from ZIP file") raise ValueError("Could not determine version from ZIP file")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment