forked from qt-creator/qt-creator
Android: Fix keytool result handling
keytool return code != 0 if the password is incorrect. Task-number: QTCREATORBUG-17317 Change-Id: I248b4a687ef48a849d42a70940009738d29a609c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -305,7 +305,7 @@ QAbstractItemModel *AndroidBuildApkStep::keystoreCertificates()
|
||||
keytoolProc.setTimeoutS(30);
|
||||
const Utils::SynchronousProcessResponse response
|
||||
= keytoolProc.run(AndroidConfigurations::currentConfig().keytoolPath().toString(), params);
|
||||
if (response.result != Utils::SynchronousProcessResponse::Finished) {
|
||||
if (response.result > Utils::SynchronousProcessResponse::FinishedError) {
|
||||
QMessageBox::critical(0, tr("Error"),
|
||||
tr("Failed to run keytool."));
|
||||
return nullptr;
|
||||
|
Reference in New Issue
Block a user