diff options
author | Liang Qi <liang.qi@qt.io> | 2016-06-29 11:29:07 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-06-29 11:29:07 +0200 |
commit | 3b1da8a7754b37d5767aeb55a7ca46e4180a6109 (patch) | |
tree | 6748bf907f7751375379318bab45cf1fb8deb107 /src/macdeployqt | |
parent | 2b062a567c5ab282ce663ac5edf03b2cb56265ce (diff) | |
parent | 0731b64ee6d3439e6ddfa3ee58a7e909b170ebb0 (diff) |
Merge remote-tracking branch 'origin/5.6' into 5.7
Conflicts:
src/assistant/assistant/doc/src/assistant-manual.qdoc
Change-Id: I136caf5f26eff4d1c2574459b8dff9937c2c372d
Diffstat (limited to 'src/macdeployqt')
-rw-r--r-- | src/macdeployqt/shared/shared.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/macdeployqt/shared/shared.cpp b/src/macdeployqt/shared/shared.cpp index 557726514..b9d71d11e 100644 --- a/src/macdeployqt/shared/shared.cpp +++ b/src/macdeployqt/shared/shared.cpp @@ -172,8 +172,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( @@ -182,6 +183,11 @@ OtoolInfo findDependencyInfo(const QString &binaryPath) QString output = otool.readAllStandardOutput(); QStringList outputLines = output.split("\n", QString::SkipEmptyParts); + if (outputLines.size() < 2) { + LogError() << "Could not parse otool output:" << output; + return info; + } + outputLines.removeFirst(); // remove line containing the binary path if (binaryPath.contains(".framework/") || binaryPath.endsWith(".dylib")) { const auto match = regexp.match(outputLines.first()); |