[tracker] libtracker-data: Do not check for ontology updates in test schema



commit 2f9f4ce675cf17b13931df4789de5481f697b583
Author: Jürg Billeter <j bitron ch>
Date:   Mon Mar 15 16:44:43 2010 +0100

    libtracker-data: Do not check for ontology updates in test schema
    
    Ontology update check requires nao:lastModified, which is not available
    in the limited test ontology set.

 src/libtracker-data/tracker-data-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index ee01dfc..82e1dfe 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -1692,7 +1692,7 @@ tracker_data_manager_init (TrackerDBManagerFlags  flags,
 	/* ensure FTS is fully initialized */
 	tracker_db_interface_execute_query (iface, NULL, "SELECT 1 FROM fulltext.fts WHERE rowid = 0");
 
-	if (check_ontology) {
+	if (check_ontology && !test_schema) {
 		GList *to_reload = NULL;
 
 		sorted = get_ontologies (test_schema != NULL, ontologies_dir);



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