From 36a5faf64f62ab3bf79cc1798f4c72f53fcdcda7 Mon Sep 17 00:00:00 2001 From: probonopd Date: Thu, 8 Sep 2016 14:28:17 +0200 Subject: [PATCH] exit(1) when needed tools are not available --- shared/shared.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shared/shared.cpp b/shared/shared.cpp index d2c13cd..2300ce5 100644 --- a/shared/shared.cpp +++ b/shared/shared.cpp @@ -338,6 +338,7 @@ QSet getBinaryRPaths(const QString &path, bool resolve = true, QString } else { LogError() << "Could not start ldd. Process error is" << ldd.errorString(); } + exit(1); } ldd.waitForFinished(); @@ -525,6 +526,7 @@ void runPatchelf(QStringList options) } else { LogError() << "Could not start patchelftool. Process error is" << patchelftool.errorString(); } + exit(1); } patchelftool.waitForFinished(); if (patchelftool.exitCode() != 0) { @@ -557,6 +559,7 @@ void runStrip(const QString &binaryPath) } else { LogError() << "Could not start strip. Process error is" << strip.errorString(); } + exit(1); } strip.waitForFinished(); @@ -1022,7 +1025,7 @@ void createAppImage(const QString &appDirPath) } else { LogError() << "Could not start AppImageAssistant. Process error is" << appImageAssistant.errorString(); } - return; + exit(1); } appImageAssistant.waitForFinished(-1);