Maemo: Manually create directories when deploying without packaging.

Task-number: QTCREATORBUG-4398
This commit is contained in:
Christian Kandeler
2011-04-07 12:24:41 +02:00
parent 408763b43c
commit 4150e14399

View File

@@ -780,9 +780,8 @@ void MaemoDeployStep::copyNextFileToDevice()
sourceFilePath += d.localFilePath;
#endif
QString command = QString::fromLatin1("%1 cp -r %2 %3")
.arg(MaemoGlobal::remoteSudo(), sourceFilePath,
d.remoteDir + QLatin1Char('/'));
QString command = QString::fromLatin1("%1 mkdir -p %3 && %1 cp -r %2 %3")
.arg(MaemoGlobal::remoteSudo(), sourceFilePath, d.remoteDir);
SshRemoteProcess::Ptr copyProcess
= m_connection->createRemoteProcess(command.toUtf8());
connect(copyProcess.data(), SIGNAL(errorOutputAvailable(QByteArray)),