summaryrefslogtreecommitdiff
path: root/src/macdeployqt
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-05-27 11:17:32 -0700
committerJake Petroules <jake.petroules@qt.io>2016-06-08 21:37:53 +0000
commit3070f40fa60ef7479810d77f5d82c57aa96bc136 (patch)
tree10b120a64a3d160f1ce5d6f7bc936acf17236797 /src/macdeployqt
parent5bbd37f8d8ac1c4e9b13cb939370f5c617a4ec68 (diff)
downloadqttools-3070f40fa60ef7479810d77f5d82c57aa96bc136.tar.gz
Bail out if otool did not exit successfully.
Change-Id: Idfd46812020dc116ade8a819dc41b0955eb09b4e Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/macdeployqt')
-rw-r--r--src/macdeployqt/shared/shared.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/macdeployqt/shared/shared.cpp b/src/macdeployqt/shared/shared.cpp
index b2af604e9..5c50efcdc 100644
--- a/src/macdeployqt/shared/shared.cpp
+++ b/src/macdeployqt/shared/shared.cpp
@@ -176,8 +176,9 @@ OtoolInfo findDependencyInfo(const QString &binaryPath)
otool.start("otool", QStringList() << "-L" << binaryPath);
otool.waitForFinished();
- if (otool.exitCode() != 0) {
+ if (otool.exitStatus() != QProcess::NormalExit || otool.exitCode() != 0) {
LogError() << otool.readAllStandardError();
+ return info;
}
static const QRegularExpression regexp(QStringLiteral(