From 4f4b2f15d3ee812910ba4dd96f12c16a734107a9 Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Thu, 26 Jan 2017 00:58:22 +0100 Subject: [PATCH] macOS: Fix deploy-mac.py which fails when no dylib path has to be changed --- Tools/deploy-mac.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/deploy-mac.py b/Tools/deploy-mac.py index 8305a43046..80976d3f9a 100755 --- a/Tools/deploy-mac.py +++ b/Tools/deploy-mac.py @@ -120,7 +120,10 @@ def updateMachO(bin, execPath, root): print('Updating Mach-O id from {} to {}...'.format(oldExecPath, newExecPath)) args.extend(['-id', newExecPath]) args.append(bin) - subprocess.check_call(args) + + # Check we actually have to update some paths + if len(args) > 2: + subprocess.check_call(args) if __name__ == '__main__': parser = argparse.ArgumentParser()