[vcpkg] Fix macOS applocal.py dependency bundling. (#11057)

This is the same issue and fix applied here https://github.com/OpenZWave/ozw-admin/issues/4.
This commit is contained in:
Kevin Hartman 2020-05-20 20:45:25 -04:00 committed by GitHub
parent 056743134a
commit f6dd5aee5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ def get_dependencies(filename):
deps = []
if proc_out.retcode == 0:
# some string splitting
deps = [s.strip().split(' ')[0] for s in proc_out.stdout.splitlines()[1:] if s]
deps = [s.strip().split(b' ')[0].decode('utf-8') for s in proc_out.stdout.splitlines()[1:] if s]
# prevent infinite recursion when a binary depends on itself (seen with QtWidgets)...
deps = [s for s in deps if os.path.basename(filename) not in s]
return deps