exit(1) when needed tools are not available

This commit is contained in:
probonopd
2016-09-08 14:28:17 +02:00
committed by GitHub
parent a37a413d9a
commit 36a5faf64f
+4 -1
View File
@@ -338,6 +338,7 @@ QSet<QString> getBinaryRPaths(const QString &path, bool resolve = true, QString
} else { } else {
LogError() << "Could not start ldd. Process error is" << ldd.errorString(); LogError() << "Could not start ldd. Process error is" << ldd.errorString();
} }
exit(1);
} }
ldd.waitForFinished(); ldd.waitForFinished();
@@ -525,6 +526,7 @@ void runPatchelf(QStringList options)
} else { } else {
LogError() << "Could not start patchelftool. Process error is" << patchelftool.errorString(); LogError() << "Could not start patchelftool. Process error is" << patchelftool.errorString();
} }
exit(1);
} }
patchelftool.waitForFinished(); patchelftool.waitForFinished();
if (patchelftool.exitCode() != 0) { if (patchelftool.exitCode() != 0) {
@@ -557,6 +559,7 @@ void runStrip(const QString &binaryPath)
} else { } else {
LogError() << "Could not start strip. Process error is" << strip.errorString(); LogError() << "Could not start strip. Process error is" << strip.errorString();
} }
exit(1);
} }
strip.waitForFinished(); strip.waitForFinished();
@@ -1022,7 +1025,7 @@ void createAppImage(const QString &appDirPath)
} else { } else {
LogError() << "Could not start AppImageAssistant. Process error is" << appImageAssistant.errorString(); LogError() << "Could not start AppImageAssistant. Process error is" << appImageAssistant.errorString();
} }
return; exit(1);
} }
appImageAssistant.waitForFinished(-1); appImageAssistant.waitForFinished(-1);