[tracker/tracker-0.10] tracker-miner-fs: Fix build issues when we don't have HAVE_MAEMO defined



commit b87debe012b2c0dc1663ced56c3d759cc7c0b60b
Author: Martyn Russell <martyn lanedo com>
Date:   Fri Nov 25 15:07:04 2011 +0000

    tracker-miner-fs: Fix build issues when we don't have HAVE_MAEMO defined

 src/miners/fs/tracker-main.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index eaddb59..cae69c0 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -876,9 +876,8 @@ main (gint argc, gchar *argv[])
 		tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_userguides), TRUE);
 	} else {
 		tracker_miner_fs_set_mtime_checking (TRACKER_MINER_FS (miner_userguides), do_mtime_checking);
-#endif /* HAVE_MAEMO */
 	}
-
+#endif /* HAVE_MAEMO */
 
 	g_signal_connect (miner_applications, "finished",
 	                  G_CALLBACK (miner_finished_cb),
@@ -911,9 +910,14 @@ main (gint argc, gchar *argv[])
 
 	if (miners_timeout_id == 0 &&
 	    !miner_needs_check (miner_files, store_available) &&
-	    !miner_needs_check (miner_applications, store_available) && 
-	    !miner_needs_check (miner_userguides, store_available)) {
+	    !miner_needs_check (miner_applications, store_available)) {
+#ifdef HAVE_MAEMO
+		if (!miner_needs_check (miner_userguides, store_available)) {
+			tracker_db_manager_set_need_mtime_check (FALSE);
+		}
+#else  /* HAVE_MAEMO */
 		tracker_db_manager_set_need_mtime_check (FALSE);
+#endif /* HAVE_MAEMO */
 	}
 
 	g_main_loop_unref (main_loop);



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