Tools: Fix recurring multiple times over the same library

This commit is contained in:
Vicki Pfau 2017-02-03 09:37:28 -08:00
parent 6df55275b8
commit 0cf9051d2a
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Bugfixes:
- GBA Savedata: Fix savedata unmasking (fixes mgba.io/i/441)
- Util: Fix overflow when loading invalid UPS patches
- GB: Fix crash when patching ROMs
- Tools: Fix recurring multiple times over the same library
Misc:
- Qt: Improved HiDPI support
- Feature: Support ImageMagick 7

View File

@ -96,6 +96,7 @@ def updateMachO(bin, execPath, root):
if os.access(newPath, os.F_OK):
if verbose:
print('Skipping copying {}, already done.'.format(oldPath))
newPath = None
elif os.path.abspath(oldPath) != os.path.abspath(newPath):
if verbose:
print('Copying {} to {}...'.format(oldPath, newPath))
@ -111,7 +112,8 @@ def updateMachO(bin, execPath, root):
args = [installNameTool]
for path, oldExecPath, newExecPath in toUpdate:
if path != bin:
updateMachO(path, execPath, root)
if path:
updateMachO(path, execPath, root)
if verbose:
print('Updating Mach-O load from {} to {}...'.format(oldExecPath, newExecPath))
args.extend(['-change', oldExecPath, newExecPath])