forked from qt-creator/qt-creator
Android: Fix empty output when sdkmanager command fails
Change-Id: I013f35880acd5683f23de49cb388c5ef9d8fc911 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
@@ -82,12 +82,9 @@ static bool sdkManagerCommand(const AndroidConfig config, const QStringList &arg
|
|||||||
proc.setTimeoutS(timeout);
|
proc.setTimeoutS(timeout);
|
||||||
proc.setTimeOutMessageBoxEnabled(true);
|
proc.setTimeOutMessageBoxEnabled(true);
|
||||||
SynchronousProcessResponse response = proc.run(sdkManagerToolPath, args);
|
SynchronousProcessResponse response = proc.run(sdkManagerToolPath, args);
|
||||||
if (response.result == SynchronousProcessResponse::Finished) {
|
if (output)
|
||||||
if (output)
|
*output = response.allOutput();
|
||||||
*output = response.allOutput();
|
return response.result == SynchronousProcessResponse::Finished;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Reference in New Issue
Block a user