Tools: Clean up deploy-mac script symlink resolution
This commit is contained in:
parent
c1c472958e
commit
14dbe7e6db
|
@ -69,15 +69,8 @@ def parseOtoolLine(line, execPath, root):
|
||||||
split[:1] = execPath
|
split[:1] = execPath
|
||||||
if split[0] == '/' and not os.access(joinPath(split), os.F_OK):
|
if split[0] == '/' and not os.access(joinPath(split), os.F_OK):
|
||||||
split[:1] = root
|
split[:1] = root
|
||||||
try:
|
oldPath = os.path.realpath(joinPath(split))
|
||||||
oldPath = joinPath(split)
|
split = splitPath(oldPath)
|
||||||
while True:
|
|
||||||
linkPath = os.readlink(os.path.abspath(oldPath))
|
|
||||||
oldPath = os.path.join(os.path.dirname(oldPath), linkPath)
|
|
||||||
except OSError as e:
|
|
||||||
if e.errno != errno.EINVAL:
|
|
||||||
raise
|
|
||||||
split = splitPath(oldPath)
|
|
||||||
isFramework = False
|
isFramework = False
|
||||||
if not split[-1].endswith('.dylib'):
|
if not split[-1].endswith('.dylib'):
|
||||||
isFramework = True
|
isFramework = True
|
||||||
|
|
Loading…
Reference in New Issue