Fix gen_sym_files.py trying to process non-macho files
authorJocelyn Turcotte <jturcotte@woboq.com>
Fri, 22 Jan 2016 15:48:32 +0000 (16:48 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Fri, 22 Jan 2016 15:48:53 +0000 (16:48 +0100)
Since it processes all files under PlugIns uncondisionally, it would
now try to process the Info.plist file in the FinderSyncExt bundle.

admin/osx/gen_sym_files.py

index 867bc5e8b78e81c50c8540955c8cea836a34f177..1d9fa24890532aaf9dd78a55e6fa969b11b03bf1 100755 (executable)
@@ -25,6 +25,8 @@ def extractDeps(macho):
     deps = [macho]
     otool = subprocess.Popen(['otool', '-L', macho], stdout=subprocess.PIPE)
     for l in otool.communicate()[0].splitlines():
+        if 'is not an object file' in l:
+            return []
         m = re.search(r'@[^\s]+', l)
         if m:
             path = resolvePath(m.group(0))