Skip to content
Snippets Groups Projects
Commit e9a20d33 authored by ck's avatar ck
Browse files

Maemo: Fix new deployment algorithm.

Reviewed-by: kh1
parent 4e29b16f
No related branches found
No related tags found
No related merge requests found
...@@ -1064,13 +1064,13 @@ void AbstractMaemoRunControl::startDeployment(bool forDebugging) ...@@ -1064,13 +1064,13 @@ void AbstractMaemoRunControl::startDeployment(bool forDebugging)
void AbstractMaemoRunControl::deploy() void AbstractMaemoRunControl::deploy()
{ {
if (!deployables.isEmpty()) { if (!deployables.isEmpty()) {
QPair<QString, QString> pair = deployables.at(0); QPair<QString, QString> pair = deployables.first();
emit addToOutputWindow(this, tr("File to deploy: %1.").arg(pair.first)); emit addToOutputWindow(this, tr("File to deploy: %1.").arg(pair.first));
QStringList cmdArgs; QStringList cmdArgs;
cmdArgs << "-P" << port() << options() << pair.first << (devConfig.uname cmdArgs << "-P" << port() << options() << pair.first << (devConfig.uname
+ "@" + devConfig.host + ":" + remoteDir()); + "@" + devConfig.host + ":" + remoteDir());
deployProcess.setWorkingDirectory(QFileInfo(pair.second).absolutePath()); deployProcess.setWorkingDirectory(pair.second);
deployProcess.start(runConfig->scpCmd(), cmdArgs); deployProcess.start(runConfig->scpCmd(), cmdArgs);
if (!deployProcess.waitForStarted()) { if (!deployProcess.waitForStarted()) {
...@@ -1100,10 +1100,14 @@ void AbstractMaemoRunControl::deployProcessFinished() ...@@ -1100,10 +1100,14 @@ void AbstractMaemoRunControl::deployProcessFinished()
if (deployProcess.exitCode() == 0) { if (deployProcess.exitCode() == 0) {
emit addToOutputWindow(this, tr("Target deployed.")); emit addToOutputWindow(this, tr("Target deployed."));
success = true; success = true;
if (deployingExecutable) if (deployingExecutable) {
runConfig->wasDeployed(); runConfig->wasDeployed();
if (deployingDumperLib) deployingExecutable = false;
}
if (deployingDumperLib) {
runConfig->debuggingHelpersDeployed(); runConfig->debuggingHelpersDeployed();
deployingDumperLib = false;
}
deployables.removeFirst(); deployables.removeFirst();
} else { } else {
emit error(this, tr("Deployment failed.")); emit error(this, tr("Deployment failed."));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment