forked from qt-creator/qt-creator
RemoteLinux: Do not reject sftp deployment when no info is available
We would set up a non-working deploy configuration for devices that
existed before 11.0.
Amends 3cd0dad3d4
.
Change-Id: If9d79207c9781e158635e35e211c0071109101db
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -29,8 +29,11 @@ FileTransferMethod defaultTransferMethod(Kit *kit)
|
|||||||
return FileTransferMethod::Rsync;
|
return FileTransferMethod::Rsync;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (runDevice && runDevice->extraData(Constants::SupportsSftp).toBool())
|
if (runDevice) {
|
||||||
return FileTransferMethod::Sftp;
|
const QVariant sftpInfo = runDevice->extraData(Constants::SupportsSftp);
|
||||||
|
if (!sftpInfo.isValid() || sftpInfo.toBool())
|
||||||
|
return FileTransferMethod::Sftp;
|
||||||
|
}
|
||||||
|
|
||||||
return FileTransferMethod::GenericCopy;
|
return FileTransferMethod::GenericCopy;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user