Skip to content

Commit b43bad7

Browse files
committed
add comment to clarify why ';' is used in regex to extract glibc version
1 parent fbb7246 commit b43bad7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

easybuild/tools/systemtools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,8 @@ def get_glibc_version():
943943

944944
if os_type == LINUX:
945945
glibc_ver_str = get_tool_version('ldd')
946+
# note: get_tool_version replaces newlines with ';',
947+
# hence the use of ';' below after the expected glibc version
946948
glibc_ver_regex = re.compile(r"^ldd \(.+\) (\d[\d.]+);")
947949
res = glibc_ver_regex.search(glibc_ver_str)
948950

0 commit comments

Comments
 (0)