Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LbScripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LHCb Core Software
LbScripts
Merge requests
!79
Allow future as a version of any package
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Allow future as a version of any package
allow_future_version
into
master
Overview
0
Commits
1
Changes
1
Merged
Sebastien Ponce
requested to merge
allow_future_version
into
master
8 years ago
Overview
0
Commits
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
6027ed21
1 commit,
8 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
LbConfiguration/python/LbConfiguration/SP2/version.py
+
1
−
1
Options
@@ -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