From ef1a3c8ea5966249c4a9c0407ca4c4cf81c20248 Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Fri, 12 Dec 2025 11:01:17 +0100 Subject: [PATCH] fix: rootPath for server installation can be a random string, followed by a timestamp --- src/DIRAC/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/__init__.py b/src/DIRAC/__init__.py index 852e264a692..a408647cc85 100755 --- a/src/DIRAC/__init__.py +++ b/src/DIRAC/__init__.py @@ -139,7 +139,7 @@ def _computeRootPath(rootPath): if versionsPath.parent.name != "versions": return str(rootPath) # VERSION-INSTALL_TIME - pattern1 = re.compile(r"v(\d+\.\d+\.\d+[^\-]*)\-(\d+)") + pattern1 = re.compile(r"(v\d+\.\d+\.\d+[^\-]*|[^-]+)-(\d+)") # $(uname -s)-$(uname -m) pattern2 = re.compile(r"([^\-]+)-([^\-]+)") if pattern1.fullmatch(versionsPath.name) and pattern2.fullmatch(rootPath.name):