未验证 提交 5c14fdcf 编写于 作者: L Leo Chen 提交者: GitHub

fix bug when get_glibc_ver returns None (#26693)

上级 76313dd5
......@@ -201,10 +201,13 @@ def pre_load(dso_name):
def get_glibc_ver():
return run_shell_command("ldd --version | awk '/ldd/{print $NF}'").strip()
return run_shell_command("ldd --version | awk '/ldd/{print $NF}'")
def less_than_ver(a, b):
if a is None or b is None:
return False
import re
import operator
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册