1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | def _get_system_libs():
global _libraries
if _libraries:
return _libraries
release = common.get_os_release_info()['VERSION_ID']
lib_path = os.path.join(common.get_librariesdir(), release)
if not os.path.exists(lib_path):
logger.debug('No libraries to exclude from this release')
# Always exclude libc.so.6
return frozenset(['libc.so.6'])
with open(lib_path) as fn:
_libraries = frozenset(fn.read().split())
return _libraries
|