fix bug when get_glibc_ver returns None (#26693)

revert-26856-strategy_example2
Leo Chen 5 years ago committed by GitHub
parent 76313dd595
commit 5c14fdcf0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save