Commit d2278b8a authored by Martyn Russell's avatar Martyn Russell

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

parent 4b940d99
......@@ -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),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment