forked from qt-creator/qt-creator
Maemo: Fix new deployment algorithm.
Reviewed-by: kh1
This commit is contained in:
@@ -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()
|
|||||||
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."));
|
||||||
|
Reference in New Issue
Block a user