[tracker/checkpoint] libtracker-data: Do not print critical if db-locale.txt does not exist



commit 536e8ae617342c27e208956765ed266415deb38d
Author: JÃrg Billeter <j bitron ch>
Date:   Mon Jun 27 13:00:19 2011 +0200

    libtracker-data: Do not print critical if db-locale.txt does not exist

 src/libtracker-data/tracker-db-manager.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 59044df..22964ba 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -611,7 +611,9 @@ db_get_locale (void)
 			g_critical ("  Could not get content of file '%s'", filename);
 		}
 	} else {
-		g_critical ("  Could not find database locale file:'%s'", filename);
+		/* expected when restoring from backup, always recreate indices */
+		g_message ("  Could not find database locale file:'%s'", filename);
+		return g_strdup ("unknown");
 	}
 
 	g_free (filename);



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