[Pkg-owncloud-commits] [owncloud-client] 86/171: Propagator: Remove warning when moving out of deleted folder
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Feb 17 09:36:52 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to annotated tag upstream/2.1.1+dfsg
in repository owncloud-client.
commit d4b6b5cb1dfbdc15d88ace03bad5dfe1f31f9012
Author: Christian Kamm <mail at ckamm.de>
Date: Thu Jan 7 10:04:04 2016 +0100
Propagator: Remove warning when moving out of deleted folder
---
src/libsync/owncloudpropagator.cpp | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp
index ab0734d..7e82e8c 100644
--- a/src/libsync/owncloudpropagator.cpp
+++ b/src/libsync/owncloudpropagator.cpp
@@ -310,7 +310,7 @@ void OwncloudPropagator::start(const SyncFileItemVector& items)
if (!removedDirectory.isEmpty() && item->_file.startsWith(removedDirectory)) {
// this is an item in a directory which is going to be removed.
- PropagateDirectory *delDirJob = dynamic_cast<PropagateDirectory*>(directoriesToRemove.last());
+ PropagateDirectory *delDirJob = dynamic_cast<PropagateDirectory*>(directoriesToRemove.first());
if (item->_instruction == CSYNC_INSTRUCTION_REMOVE) {
// already taken care of. (by the removal of the parent directory)
@@ -330,10 +330,12 @@ void OwncloudPropagator::start(const SyncFileItemVector& items)
continue;
} else if (item->_instruction == CSYNC_INSTRUCTION_IGNORE) {
continue;
+ } else if (item->_instruction == CSYNC_INSTRUCTION_RENAME) {
+ // all is good, the rename will be executed before the directory deletion
+ } else {
+ qWarning() << "WARNING: Job within a removed directory? This should not happen!"
+ << item->_file << item->_instruction;
}
-
- qWarning() << "WARNING: Job within a removed directory? This should not happen!"
- << item->_file << item->_instruction;
}
while (!item->destination().startsWith(directories.top().first)) {
--
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