Skip to content
Snippets Groups Projects
Commit 8ac0bdaf authored by Sid's avatar Sid
Browse files

Allow verisons with patch version number as well

parent 8fd48653
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ ap.add_argument("--branch", help="Download only builds of this branch") ...@@ -25,7 +25,7 @@ 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]+)-') 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: 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment