[tracker/miner-userguide: 8/15] tracker-miner-fs: Remove some FIXME comments and add TODO comments



commit 3f74c0516d49d058c0f2f0dce39b2ef7da4f0ea8
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Nov 24 10:12:01 2011 +0000

    tracker-miner-fs: Remove some FIXME comments and add TODO comments

 src/miners/fs/tracker-miner-userguides.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-userguides.c b/src/miners/fs/tracker-miner-userguides.c
index 2d8e91d..8c0cb48 100644
--- a/src/miners/fs/tracker-miner-userguides.c
+++ b/src/miners/fs/tracker-miner-userguides.c
@@ -227,13 +227,10 @@ miner_userguides_check_file (TrackerMinerFS *fs,
 
 	basename = g_file_get_basename (file);
 
-	/* FIXME: What do we ignore and what don't we? */
 	if (g_str_has_suffix (basename, ".html")) {
 		retval = TRUE;
 	}
 
-	/* FIXME: Do we check the mime type is 'application/x-userguide-html' */
-
 	g_free (basename);
 
 	return retval;
@@ -645,6 +642,7 @@ parser_get_file_content (const gchar *uri,
 /* If a reset is requested, we will remove from the store all items previously
  * inserted by the tracker-miner-userguides, this is:
  *  (a) Remove all resources which are a nfo:HelpDocument
+ *  (b) Remove all unnecessary directories 
  */
 static void
 miner_userguides_reset (TrackerMiner *miner)
@@ -654,6 +652,7 @@ miner_userguides_reset (TrackerMiner *miner)
 
 	sparql = tracker_sparql_builder_new_update ();
 
+	/* (a) Remove all resources which are a nfo:HelpDocument */
 	tracker_sparql_builder_delete_open (sparql, TRACKER_MINER_FS_GRAPH_URN);
 	tracker_sparql_builder_subject_variable (sparql, "userguide");
 	tracker_sparql_builder_predicate (sparql, "a");
@@ -666,6 +665,10 @@ miner_userguides_reset (TrackerMiner *miner)
 	tracker_sparql_builder_object (sparql, "nfo:HelpDocument");
 	tracker_sparql_builder_where_close (sparql);
 
+	/* (b) Remove all unnecessary directories */
+	/* TODO: Finish */
+
+
 	/* Execute a sync update, we don't want the userguides miner to start before
 	 * we finish this. */
 	tracker_sparql_connection_update (tracker_miner_get_connection (miner),



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