summaryrefslogtreecommitdiff
path: root/scripts/macosx-sanity-check.py
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-04-12 18:35:44 (GMT)
committerMarius Kintel <marius@kintel.net>2011-04-12 18:35:44 (GMT)
commitd24b3cc84d0701a5423925765e515db7df9614c5 (patch)
tree0d63867d8b5a3c6ffe107371caa6b29cf8ad0f02 /scripts/macosx-sanity-check.py
parent633343c47e0d2bced64d47f62e814489b8e76dc2 (diff)
parent1754a970a76c071fff91cc7c716aa0b78b4ac6be (diff)
Ported recent changes to master into the visitor branch
Diffstat (limited to 'scripts/macosx-sanity-check.py')
-rwxr-xr-xscripts/macosx-sanity-check.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/macosx-sanity-check.py b/scripts/macosx-sanity-check.py
index 243020f..3938d74 100755
--- a/scripts/macosx-sanity-check.py
+++ b/scripts/macosx-sanity-check.py
@@ -9,6 +9,9 @@
#
# Author: Marius Kintel <marius@kintel.net>
#
+# This script lives here:
+# https://github.com/kintel/MacOSX-tools
+#
import sys
import os
@@ -49,9 +52,14 @@ def lookup_library(file):
def find_dependencies(file):
libs = []
- p = subprocess.Popen(["otool", "-L", file], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- output = p.communicate()[0]
- if p.returncode != 0: return None
+ args = ["otool", "-L", file]
+ if DEBUG: print "Executing " + " ".join(args)
+ p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ output,err = p.communicate()
+ if p.returncode != 0:
+ print "Failed with return code " + str(p.returncode) + ":"
+ print err
+ return None
deps = output.split('\n')
for dep in deps:
# print dep
contact: Jan Huwald // Impressum