From a257596b90767dff519f862f7351dae213669a5d Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Thu, 7 Apr 2011 17:02:30 +0200 Subject: [PATCH] Maemo: Manually create directories when deploying without packaging. Task-number: QTCREATORBUG-4398 --- .../qt4projectmanager/qt-maemo/maemoremotecopyfacility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemoremotecopyfacility.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemoremotecopyfacility.cpp index d272f8b7edf..df81b8c07ce 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemoremotecopyfacility.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemoremotecopyfacility.cpp @@ -136,9 +136,9 @@ void MaemoRemoteCopyFacility::copyNextFile() sourceFilePath += d.localFilePath; #endif - QString command = QString::fromLatin1("%1 cp -r %2 %3") + QString command = QString::fromLatin1("%1 mkdir -p %3 && %1 cp -r %2 %3") .arg(MaemoGlobal::remoteSudo(m_copyRunner->connection()->connectionParameters().userName), - sourceFilePath, d.remoteDir + QLatin1Char('/')); + sourceFilePath, d.remoteDir); emit progress(tr("Copying file '%1' to directory '%2' on the device...") .arg(d.localFilePath, d.remoteDir)); m_copyRunner->run(command.toUtf8());