[gnome-documents/wip/skydrive: 13/18] miner: insert Skydrive name as nfo:fileName



commit 0792853e7ffd755ad876bb683eeb04755e60d5ac
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed May 30 18:20:19 2012 +0200

     miner: insert Skydrive name as nfo:fileName
    
    Fixes: https://bugzilla.gnome.org/666535

 src/miner/gd-zpj-miner.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/miner/gd-zpj-miner.c b/src/miner/gd-zpj-miner.c
index a4727a6..2d95502 100644
--- a/src/miner/gd-zpj-miner.c
+++ b/src/miner/gd-zpj-miner.c
@@ -327,6 +327,15 @@ account_miner_job_process_entry (AccountMinerJob *job,
   if (*error != NULL)
     goto out;
 
+  gd_miner_tracker_sparql_connection_insert_or_replace_triple
+    (job->connection,
+     job->cancellable, error,
+     datasource_urn, resource,
+     "nfo:fileName", zpj_skydrive_entry_get_name (entry));
+
+  if (*error != NULL)
+    goto out;
+
   contact_resource = _tracker_utils_ensure_contact_resource
     (job->connection,
      job->cancellable, error,



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