[Pkg-owncloud-commits] [owncloud-client] 44/78: SyncEngine: cleanup setting isDirectory
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Jun 24 16:29:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit fff5c280b3d5cee6c476fb9e9ed61991b4295ecc
Author: Olivier Goffart <ogoffart at woboq.com>
Date: Tue May 24 15:17:35 2016 +0200
SyncEngine: cleanup setting isDirectory
---
src/libsync/syncengine.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp
index f3e9084..36fefc0 100644
--- a/src/libsync/syncengine.cpp
+++ b/src/libsync/syncengine.cpp
@@ -548,13 +548,12 @@ int SyncEngine::treewalkFile( TREE_WALK_FILE *file, bool remote )
bool directoryEtagUpdate = isDirectory && file->should_update_metadata;
bool localMetadataUpdate = !remote && file->should_update_metadata;
if (!directoryEtagUpdate) {
+ item->_isDirectory = isDirectory;
if (localMetadataUpdate) {
// Hack, we want a local metadata update to happen, but only if the
// remote tree doesn't ask us to do some kind of propagation.
- item->_isDirectory = isDirectory;
_syncItemMap.insert(key, item);
}
- item->_isDirectory = isDirectory;
emit syncItemDiscovered(*item);
return re;
}
@@ -581,7 +580,7 @@ int SyncEngine::treewalkFile( TREE_WALK_FILE *file, bool remote )
// An upload of an existing file means that the file was left unchanged on the server
// This counts as a NONE for detecting if all the files on the server were changed
_hasNoneFiles = true;
- } else if (!item->_isDirectory) {
+ } else if (!isDirectory) {
if (std::difftime(file->modtime, file->other.modtime) < 0) {
// We are going back on time
_backInTimeFiles++;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list