Skip to content

Commit 82d768c

Browse files
authored
Merge pull request #8405 from fstagni/90_gitBranch_V_2
fix: rootPath for server installation can be a random string, followed by a timestamp
2 parents dc2ad34 + ef1a3c8 commit 82d768c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DIRAC/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _computeRootPath(rootPath):
139139
if versionsPath.parent.name != "versions":
140140
return str(rootPath)
141141
# VERSION-INSTALL_TIME
142-
pattern1 = re.compile(r"v(\d+\.\d+\.\d+[^\-]*)\-(\d+)")
142+
pattern1 = re.compile(r"(v\d+\.\d+\.\d+[^\-]*|[^-]+)-(\d+)")
143143
# $(uname -s)-$(uname -m)
144144
pattern2 = re.compile(r"([^\-]+)-([^\-]+)")
145145
if pattern1.fullmatch(versionsPath.name) and pattern2.fullmatch(rootPath.name):

0 commit comments

Comments
 (0)