[tracker/tracker-store: 11/11] tracker-indexer: Do not directly modify db in applications module



commit 8fecb9716427fa0a275280edb387825ea2391192
Author: Jürg Billeter <j bitron ch>
Date:   Mon May 4 17:12:59 2009 +0200

    tracker-indexer: Do not directly modify db in applications module
---
 src/tracker-indexer/modules/applications.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tracker-indexer/modules/applications.c b/src/tracker-indexer/modules/applications.c
index 2e7cdda..6e103d9 100644
--- a/src/tracker-indexer/modules/applications.c
+++ b/src/tracker-indexer/modules/applications.c
@@ -261,8 +261,8 @@ tracker_application_file_get_metadata (TrackerModuleFile *file)
 					 * preemptively creating them if we visit a app .desktop
 					 * file that mentions one that we don't yet know about */
 
-					tracker_data_insert_statement (cat_uri, RDF_TYPE, NFO_PREFIX "SoftwareCategory");
-					tracker_data_insert_statement (cat_uri, NIE_PREFIX "title", cats[i]);
+					tracker_module_metadata_add_string (metadata, cat_uri, RDF_TYPE, NFO_PREFIX "SoftwareCategory");
+					tracker_module_metadata_add_string (metadata, cat_uri, NIE_PREFIX "title", cats[i]);
 				}
 
 				tracker_module_metadata_add_string (metadata, uri, NFO_PREFIX "belongsToContainer", cat_uri);



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