mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
fix(check_deps): Fix support for includes in ld.so.conf
The path passed to _ReadLdSoConf must start with a '/' which wasn't happening since relpath returns a relative path.
This commit is contained in:
parent
078ec6cf0d
commit
84fadc8236
@ -47,7 +47,8 @@ class CheckDependencies(object):
|
||||
# Includes are absolute or relative to the file itself.
|
||||
line = os.path.join(os.path.dirname(path), line[8:])
|
||||
for p in glob.glob(self._root + line):
|
||||
libdirs.extend(self._ReadLdSoConf(os.path.relpath(p, self._root)))
|
||||
rel_p = "/%s" % os.path.relpath(p, self._root)
|
||||
libdirs.extend(self._ReadLdSoConf(rel_p))
|
||||
|
||||
f.close()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user