RemoteLinux: Make chmod a part of sftp transfer

Task-number: QTCREATORBUG-29971
Change-Id: Icee46c0442f58a054cf15021f64595765909a586
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2023-12-07 15:11:30 +01:00
parent f170d74880
commit 465259eb3b
4 changed files with 23 additions and 47 deletions

View File

@@ -186,9 +186,13 @@ GroupItem GenericDeployStep::deployRecipe()
const auto onSetup = [this, storage] {
const QList<DeployableFile> deployableFiles = target()->deploymentData().allFiles();
FilesToTransfer &files = *storage;
for (const DeployableFile &f : deployableFiles) {
if (!ignoreMissingFiles() || f.localFilePath().exists())
files.append({f.localFilePath(), deviceConfiguration()->filePath(f.remoteFilePath())});
for (const DeployableFile &file : deployableFiles) {
if (!ignoreMissingFiles() || file.localFilePath().exists()) {
const FilePermissions permissions = file.isExecutable()
? FilePermissions::ForceExecutable : FilePermissions::Default;
files.append({file.localFilePath(),
deviceConfiguration()->filePath(file.remoteFilePath()), permissions});
}
}
if (files.isEmpty()) {
addSkipDeploymentMessage();