forked from qt-creator/qt-creator
SSH: Pass remote command as QString
The old implementation sent the command over the wire as-is, so we declared it as a QByteArray and let the caller choose the encoding. This doesn't make sense anymore, as the command is now passed to an external process as a QString anyway. Change-Id: Ib84bc0f871db2b45b93f71d924c4177cc28d3bb0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -292,12 +292,9 @@ void QnxDeployQtLibrariesDialog::checkRemoteDirectoryExistance()
|
||||
QTC_CHECK(m_state == Inactive);
|
||||
|
||||
m_state = CheckingRemoteDirectory;
|
||||
|
||||
m_ui->deployLogWindow->appendPlainText(tr("Checking existence of \"%1\"")
|
||||
.arg(fullRemoteDirectory()));
|
||||
|
||||
const QByteArray cmd = "test -d " + fullRemoteDirectory().toLatin1();
|
||||
m_processRunner->run(cmd, m_device->sshParameters());
|
||||
m_processRunner->run("test -d " + fullRemoteDirectory(), m_device->sshParameters());
|
||||
}
|
||||
|
||||
void QnxDeployQtLibrariesDialog::removeRemoteDirectory()
|
||||
@@ -305,11 +302,8 @@ void QnxDeployQtLibrariesDialog::removeRemoteDirectory()
|
||||
QTC_CHECK(m_state == CheckingRemoteDirectory);
|
||||
|
||||
m_state = RemovingRemoteDirectory;
|
||||
|
||||
m_ui->deployLogWindow->appendPlainText(tr("Removing \"%1\"").arg(fullRemoteDirectory()));
|
||||
|
||||
const QByteArray cmd = "rm -rf " + fullRemoteDirectory().toLatin1();
|
||||
m_processRunner->run(cmd, m_device->sshParameters());
|
||||
m_processRunner->run("rm -rf " + fullRemoteDirectory(), m_device->sshParameters());
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user