[tracker/libtracker-miner] Make sure we ALWAYS force checks on directories and NEVER ignore them
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-miner] Make sure we ALWAYS force checks on directories and NEVER ignore them
- Date: Tue, 25 Aug 2009 18:15:25 +0000 (UTC)
commit 1ffdc8742de7f1021059ef89ad95fcc011020474
Author: Martyn Russell <martyn lanedo com>
Date: Tue Aug 25 18:30:19 2009 +0100
Make sure we ALWAYS force checks on directories and NEVER ignore them
Unless they are ignored by the config of course.
src/libtracker-miner/tracker-miner-process.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-process.c b/src/libtracker-miner/tracker-miner-process.c
index d51adb1..e72784a 100644
--- a/src/libtracker-miner/tracker-miner-process.c
+++ b/src/libtracker-miner/tracker-miner-process.c
@@ -780,8 +780,17 @@ should_process_file (TrackerMinerProcess *process,
return FALSE;
}
- /* Check whether file is up-to-date in tracker-store */
- return should_change_index_for_file (process, file);
+ if (is_dir) {
+ /* We _HAVE_ to check ALL directories because mtime
+ * updates are not guaranteed on parents on Windows
+ * AND we on Linux only the immediate parent directory
+ * mtime is updated, this is not done recursively.
+ */
+ return TRUE;
+ } else {
+ /* Check whether file is up-to-date in tracker-store */
+ return should_change_index_for_file (process, file);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]