tracker r3176 - in trunk: . src/tracker-indexer



Author: ifrade
Date: Sun Apr  5 19:04:10 2009
New Revision: 3176
URL: http://svn.gnome.org/viewvc/tracker?rev=3176&view=rev

Log:
Fixed compilation without hal. Fixes bug #577655

Modified:
   trunk/ChangeLog
   trunk/src/tracker-indexer/tracker-indexer.c

Modified: trunk/src/tracker-indexer/tracker-indexer.c
==============================================================================
--- trunk/src/tracker-indexer/tracker-indexer.c	(original)
+++ trunk/src/tracker-indexer/tracker-indexer.c	Sun Apr  5 19:04:10 2009
@@ -1682,6 +1682,7 @@
 				     basename, 
 				     NULL);
 
+#ifdef HAVE_HAL
 	if (tracker_hal_path_is_on_removable_device (indexer->private->hal,
 						     service_path, 
 						     &mount_point,
@@ -1693,7 +1694,7 @@
 						       tracker_service_get_name (service),
 						       metadata);
 	}
-
+#endif
 	g_free (mount_point);
 	g_free (service_path);
 }
@@ -1762,6 +1763,7 @@
 	path = g_file_get_path (file);
 	source_path = g_file_get_path (source_file);
 
+#ifdef HAVE_HAL
 	if (tracker_hal_path_is_on_removable_device (indexer->private->hal,
 						     source_path,
 						     &mount_point,
@@ -1785,7 +1787,7 @@
 							      service_name);
 		}
 	}
-
+#endif
 	g_free (mount_point);
 	g_free (source_path);
 	g_free (path);
@@ -2105,7 +2107,7 @@
 
 		g_hash_table_destroy (children);
 	}
-
+#ifdef HAVE_HAL
 	if (tracker_hal_path_is_on_removable_device (indexer->private->hal,
 						     path, 
 						     &mount_point,
@@ -2115,7 +2117,7 @@
 						      path,
 						      tracker_service_get_name (service));
 	}
-
+#endif
 	g_free (mount_point);
 	g_free (path);
 }



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