We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc2ad34 + ef1a3c8 commit 82d768cCopy full SHA for 82d768c
src/DIRAC/__init__.py
@@ -139,7 +139,7 @@ def _computeRootPath(rootPath):
139
if versionsPath.parent.name != "versions":
140
return str(rootPath)
141
# VERSION-INSTALL_TIME
142
- pattern1 = re.compile(r"v(\d+\.\d+\.\d+[^\-]*)\-(\d+)")
+ pattern1 = re.compile(r"(v\d+\.\d+\.\d+[^\-]*|[^-]+)-(\d+)")
143
# $(uname -s)-$(uname -m)
144
pattern2 = re.compile(r"([^\-]+)-([^\-]+)")
145
if pattern1.fullmatch(versionsPath.name) and pattern2.fullmatch(rootPath.name):
0 commit comments