Skip to content
Snippets Groups Projects

Allow future as a version of any package

Merged Sebastien Ponce requested to merge allow_future_version into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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))
Loading