Tentative search for other libraries not found.
This commit is contained in:
parent
6c4311b706
commit
f37b49a6fb
|
@ -571,6 +571,19 @@ class Build():
|
|||
|
||||
# Updating package cache
|
||||
subprocess.run(['sudo', 'apt', 'update'], check=True)
|
||||
# Updating apt-file cache
|
||||
subprocess.run(['sudo', 'apt-file', 'update'], check=True)
|
||||
|
||||
# Let's try to find and install also other libraries
|
||||
additional = []
|
||||
for lib in not_found:
|
||||
libsearch = subprocess.run(shlex.split(
|
||||
f"sudo apt-file find -lx {lib}$"
|
||||
), check=True, capture_output=True)
|
||||
candidate = [ x for x in libsearch.stdout.decode('utf-8').split(r"\n") if 'lib' in x ][0]
|
||||
additional.append(candidate)
|
||||
|
||||
debs.extend(additional)
|
||||
|
||||
# We download the missing dependencies leveraging apt
|
||||
subprocess.run(shlex.split(
|
||||
|
|
Loading…
Reference in New Issue