forked from qt-creator/qt-creator
		
	Merge remote-tracking branch 'origin/11.0'
Change-Id: Icb3ed8a1aaf31e8201a61d04221bfcb23a78562a
This commit is contained in:
		@@ -91,7 +91,7 @@ static CreateAvdInfo createAvdCommand(const AndroidConfig &config, const CreateA
 | 
			
		||||
    proc.setCommand(avdManager);
 | 
			
		||||
    proc.start();
 | 
			
		||||
    if (!proc.waitForStarted()) {
 | 
			
		||||
        result.error = Tr::tr("Could not start process \"%1\"").arg(avdManager.toUserOutput());
 | 
			
		||||
        result.error = Tr::tr("Could not start process \"%1\".").arg(avdManager.toUserOutput());
 | 
			
		||||
        return result;
 | 
			
		||||
    }
 | 
			
		||||
    QTC_CHECK(proc.isRunning());
 | 
			
		||||
 
 | 
			
		||||
@@ -389,7 +389,7 @@ FilePath AndroidQmlPreviewWorker::createQmlrcFile(const FilePath &workFolder,
 | 
			
		||||
        rccProcess.setCommand({rccBinary, args});
 | 
			
		||||
        rccProcess.start();
 | 
			
		||||
        if (!rccProcess.waitForStarted()) {
 | 
			
		||||
            appendMessage(Tr::tr("Could not create file for %1 \"%2\"").
 | 
			
		||||
            appendMessage(Tr::tr("Could not create file for %1 \"%2\".").
 | 
			
		||||
                          arg(apkInfo()->name, rccProcess.commandLine().toUserOutput()),
 | 
			
		||||
                          StdErrFormat);
 | 
			
		||||
            qrcPath.removeFile();
 | 
			
		||||
@@ -400,7 +400,7 @@ FilePath AndroidQmlPreviewWorker::createQmlrcFile(const FilePath &workFolder,
 | 
			
		||||
        if (!rccProcess.readDataFromProcess(&stdOut, &stdErr)) {
 | 
			
		||||
            rccProcess.stop();
 | 
			
		||||
            rccProcess.waitForFinished();
 | 
			
		||||
            appendMessage(Tr::tr("A timeout occurred running \"%1\"").
 | 
			
		||||
            appendMessage(Tr::tr("A timeout occurred running \"%1\".").
 | 
			
		||||
                          arg(rccProcess.commandLine().toUserOutput()), StdErrFormat);
 | 
			
		||||
            qrcPath.removeFile();
 | 
			
		||||
            return {};
 | 
			
		||||
@@ -412,7 +412,7 @@ FilePath AndroidQmlPreviewWorker::createQmlrcFile(const FilePath &workFolder,
 | 
			
		||||
            appendMessage(QString::fromLocal8Bit(stdErr), StdErrFormat);
 | 
			
		||||
 | 
			
		||||
        if (rccProcess.exitStatus() != QProcess::NormalExit) {
 | 
			
		||||
            appendMessage(Tr::tr("Crash while creating file for %1 \"%2\"").
 | 
			
		||||
            appendMessage(Tr::tr("Crash while creating file for %1 \"%2\".").
 | 
			
		||||
                          arg(apkInfo()->name, rccProcess.commandLine().toUserOutput()),
 | 
			
		||||
                          StdErrFormat);
 | 
			
		||||
            qrcPath.removeFile();
 | 
			
		||||
 
 | 
			
		||||
@@ -158,20 +158,20 @@ void AndroidSdkDownloader::downloadAndExtractSdk()
 | 
			
		||||
        m_progressDialog->setRange(0, 0);
 | 
			
		||||
        m_progressDialog->setLabelText(Tr::tr("Unarchiving SDK Tools package..."));
 | 
			
		||||
        if (!*storage)
 | 
			
		||||
            return TaskAction::StopWithError;
 | 
			
		||||
            return SetupResult::StopWithError;
 | 
			
		||||
        const FilePath sdkFileName = **storage;
 | 
			
		||||
        if (!verifyFileIntegrity(sdkFileName, m_androidConfig.getSdkToolsSha256())) {
 | 
			
		||||
            logError(Tr::tr("Verifying the integrity of the downloaded file has failed."));
 | 
			
		||||
            return TaskAction::StopWithError;
 | 
			
		||||
            return SetupResult::StopWithError;
 | 
			
		||||
        }
 | 
			
		||||
        const auto sourceAndCommand = Unarchiver::sourceAndCommand(sdkFileName);
 | 
			
		||||
        if (!sourceAndCommand) {
 | 
			
		||||
            logError(sourceAndCommand.error());
 | 
			
		||||
            return TaskAction::StopWithError;
 | 
			
		||||
            return SetupResult::StopWithError;
 | 
			
		||||
        }
 | 
			
		||||
        unarchiver.setSourceAndCommand(*sourceAndCommand);
 | 
			
		||||
        unarchiver.setDestDir(sdkFileName.parentDir());
 | 
			
		||||
        return TaskAction::Continue;
 | 
			
		||||
        return SetupResult::Continue;
 | 
			
		||||
    };
 | 
			
		||||
    const auto onUnarchiverDone = [this, storage](const Unarchiver &) {
 | 
			
		||||
        m_androidConfig.setTemporarySdkToolsPath(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user