forked from qt-creator/qt-creator
RemoteLinux: Skip initial rsync step for remote build == run
Change-Id: I4d02b666fe10adf38513939255314682222cc82e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -40,8 +40,13 @@ RemoteLinuxDeployConfigurationFactory::RemoteLinuxDeployConfigurationFactory()
|
||||
addInitialStep(Constants::MakeInstallStepId, needsMakeInstall);
|
||||
addInitialStep(Constants::KillAppStepId);
|
||||
addInitialStep(Constants::RsyncDeployStepId, [](Target *target) {
|
||||
auto device = DeviceKitAspect::device(target->kit());
|
||||
return device && device->extraData(Constants::SupportsRSync).toBool();
|
||||
auto runDevice = DeviceKitAspect::device(target->kit());
|
||||
auto buildDevice = BuildDeviceKitAspect::device(target->kit());
|
||||
if (runDevice == buildDevice)
|
||||
return false;
|
||||
// FIXME: That's not the full truth, we need support from the build
|
||||
// device, too.
|
||||
return runDevice && runDevice->extraData(Constants::SupportsRSync).toBool();
|
||||
});
|
||||
addInitialStep(Constants::DirectUploadStepId, [](Target *target) {
|
||||
auto device = DeviceKitAspect::device(target->kit());
|
||||
|
Reference in New Issue
Block a user