Skip to content
Snippets Groups Projects
Commit c0ea2fea authored by Ben Couturier's avatar Ben Couturier
Browse files

Merge branch 'allow_future_version' into 'master'

Allow future as a version of any package



See merge request !79
parents db45f6ff 6027ed21
No related branches found
No related tags found
1 merge request!79Allow future as a version of any package
......@@ -12,7 +12,7 @@ def isValidVersion(project, version):
specified project.
'''
# FIXME: for the moment we accept only some simple values, but we should look for aliases too (LBCORE-938)
return (version.lower() in ('prod', 'latest', 'head')
return (version.lower() in ('prod', 'latest', 'head', 'future')
or re.match(r'^v\d+r\d+(p\d+)?(g\d+)?(-pre\d*)?$', version)
or (project in ('LCG', 'LCGCMT') and re.match(r'^\d+([a-z]?|rc\d+)$', version))
or (project == 'ROOT' and re.match(r'\d+\.\d+\.\d+', version))
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment