[tracker/tracker-0.6] Change File:Added to contain index time(), since some apps don't modify mtime when copying.



commit 1f1d0e0e5323f5acee9e64fcdb876a25685d0717
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jun 15 14:24:57 2009 +0200

    Change File:Added to contain index time(), since some apps don't modify mtime when copying.

 .../tracker-module-metadata-utils.c                |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-indexer/tracker-module-metadata-utils.c b/src/tracker-indexer/tracker-module-metadata-utils.c
index 00c0a5e..ddc7a6f 100644
--- a/src/tracker-indexer/tracker-module-metadata-utils.c
+++ b/src/tracker-indexer/tracker-module-metadata-utils.c
@@ -875,8 +875,7 @@ tracker_module_metadata_utils_get_data (GFile *file)
 	tracker_module_metadata_add_date (metadata, METADATA_FILE_MODIFIED, st.st_mtime);
 	tracker_module_metadata_add_date (metadata, METADATA_FILE_ACCESSED, st.st_atime);
 
-	/* Set mtime as addition date, so we don't report older files as "recent" on reindex */
-	tracker_module_metadata_add_date (metadata, METADATA_FILE_ADDED, st.st_mtime);
+	tracker_module_metadata_add_date (metadata, METADATA_FILE_ADDED, time (NULL));
 
 	metadata_utils_get_embedded (file, mime_type, metadata);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]