Sync engine: Check the blacklist for the right tree

When the operation is download, we have a INSTRUCTION_NONE for the local
tree, but we should not check the blacklist just yet.
This commit is contained in:
Olivier Goffart 2015-03-24 12:17:48 +01:00
parent 0bd2edd33a
commit dafc2d2b73

View file

@ -484,9 +484,11 @@ int SyncEngine::treewalkFile( TREE_WALK_FILE *file, bool remote )
}
item._direction = dir;
// check for blacklisting of this item.
// if the item is on blacklist, the instruction was set to IGNORE
checkErrorBlacklisting( &item );
if (instruction != CSYNC_INSTRUCTION_NONE) {
// check for blacklisting of this item.
// if the item is on blacklist, the instruction was set to ERROR
checkErrorBlacklisting( &item );
}
if (!item._isDirectory) {
_progressInfo._totalFileCount++;