RemoteLinux: Improve handling of symbolic links when deploying.

We used to follow the links, resulting in unnecessary traffic.
Now we just recreate the links.
Note: This requires the user to not have dependencies that resolve to
something outside the set of files to deploy.

Change-Id: I3f439739115b4d07b36a71fe2041d8725a25abfd
Reviewed-on: http://codereview.qt.nokia.com/1582
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Christian Kandeler
2011-07-13 12:57:04 +02:00
parent d35d6afee4
commit 9198aa23f2
4 changed files with 72 additions and 14 deletions

View File

@@ -64,6 +64,9 @@ public:
quint32 requestId);
SftpOutgoingPacket &generateWriteFile(const QByteArray &handle,
quint64 offset, const QByteArray &data, quint32 requestId);
// Note: OpenSSH's SFTP server has a bug that reverses the filePath and target
// arguments, so this operation is not portable.
SftpOutgoingPacket &generateCreateLink(const QString &filePath, const QString &target,
quint32 requestId);