Corrected code to use helper function.
This commit is contained in:
parent
62681b2aeb
commit
6ba99db56c
|
@ -575,14 +575,7 @@ class Build():
|
||||||
subprocess.run(['sudo', 'apt-file', 'update'], check=True)
|
subprocess.run(['sudo', 'apt-file', 'update'], check=True)
|
||||||
|
|
||||||
# Let's try to find and install also other libraries
|
# Let's try to find and install also other libraries
|
||||||
additional = []
|
additional = list(dict.fromkeys([ libfinderhelper(x) for x in not_found ]))
|
||||||
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)
|
debs.extend(additional)
|
||||||
|
|
||||||
# We download the missing dependencies leveraging apt
|
# We download the missing dependencies leveraging apt
|
||||||
|
|
Loading…
Reference in New Issue