Skip to content
Snippets Groups Projects
Commit 46d163f2 authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

Replacing last - in directory name with . to match the versions being saved to the db

parent a4196430
No related branches found
No related tags found
2 merge requests!1706merge 2.8.4 to main,!1683WS-1405 CASA version mixup
......@@ -60,7 +60,8 @@ def casa_version_from_path(path: str) -> str:
cv_search = re.search(CASA_VERSION_REGEX, path)
pv_search = re.search(PIPELINE_VERSION_REGEX, path)
if cv_search:
casa_version = cv_search.group(1)
# Replace last '-' in the directory name with '.' to match versions stored in the database
casa_version = '.'.join(cv_search.group(1).rsplit('-', 1))
if pv_search:
# Strip el* from the release name (used to be a thing)
pipeline_version = re.sub(EL_SUFFIX_REGEX, "", pv_search.group(1))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment