From eb81ceb789afbe8e107cedf9d82b8b807237da74 Mon Sep 17 00:00:00 2001 From: Efe Date: Fri, 13 Sep 2024 16:22:31 +0200 Subject: [PATCH] sherpa version check --- bin/utils/request_fragment_check.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/utils/request_fragment_check.py b/bin/utils/request_fragment_check.py index 55f71471f0fe..6ef0cd2f16da 100755 --- a/bin/utils/request_fragment_check.py +++ b/bin/utils/request_fragment_check.py @@ -792,11 +792,13 @@ def root_requests_from_ticket(ticket_prepid, include_docs=False): else: warnings.append("scram_arch for Sherpa unidentifiable") sv_tmp = re.findall("sherpa/.*/",gridpack_cvmfs_path_tmp)[0].split("/")[1].split(".") - if "v" in sv_tmp[0].lower(): sv_tmp[0] = sv_tmp[0].replace("v","").replace("V","") - sherpa_version = int(sv_tmp[0])*1000 + int(sv_tmp[1])*100 + int(sv_tmp[2]) - print ("Sherpa Version = ", sherpa_version) + sherpa_version = 0000 + if "v" in sv_tmp[0].lower(): + sv_tmp[0] = sv_tmp[0].replace("v","").replace("V","") + sherpa_version = int(sv_tmp[0])*1000 + int(sv_tmp[1])*100 + int(sv_tmp[2]) + print ("Sherpa Version = ", sherpa_version) if sherpa_version < 2211: - warnings.append("Sherpa older than version 2.2.11") + warnings.append("Sherpa older than version 2.2.11 or not specified in gp name") if "openloops" in gridpack_cvmfs_path_tmp.lower(): openloops_flag = True OL_list = os.popen('grep openloops '+pi_file).read().split("/")