[tracker] libtracker-miner: Always reextract partially restored files



commit 09371e9996d3e1da3a115975d4b8712a72212d63
Author: Jürg Billeter <j bitron ch>
Date:   Mon Jan 31 16:36:39 2011 +0100

    libtracker-miner: Always reextract partially restored files
    
    Partially restored resources are marked as tracker:damaged.

 src/libtracker-miner/tracker-miner-fs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 5d3bea2..8e5b1e8 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -2979,7 +2979,7 @@ ensure_mtime_cache (TrackerMinerFS *fs,
 
 		g_debug ("Generating mtime cache for URI '%s'", uri);
 
-		query = g_strdup_printf ("SELECT ?url ?last { "
+		query = g_strdup_printf ("SELECT ?url IF(tracker:damaged(?u), '0001-01-01T00:00:00Z', ?last) { "
 		                         "?u nfo:belongsToContainer ?p ; "
 		                         "   nie:url ?url ; "
 		                         "   nfo:fileLastModified ?last . "



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