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



commit cca90afddb15b94d5b42f8a283bec22831b217e3
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 d883d45..3734e50 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -612,7 +612,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]