[tracker/tracker-0.8] libtracker-miner: minor indentation fixes



commit 11cc778e887296370546a260d68ded1342f8d466
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Mon Jun 14 10:47:38 2010 +0200

    libtracker-miner: minor indentation fixes

 src/libtracker-miner/tracker-miner-fs.c |   33 +++++++++++++++----------------
 1 files changed, 16 insertions(+), 17 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 4c6c5fc..55af3e8 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -994,11 +994,11 @@ sparql_update_cb (GObject      *object,
 			GFile *parent;
 
 			/* Note: parent may be NULL if the file represents
-			 *  the root directory of the file system (applies to
-			 *  .gvfs mounts also!) */
+			 * the root directory of the file system (applies to
+			 * .gvfs mounts also!) */
 			parent = g_file_get_parent (data->file);
 
-			if(parent) {
+			if (parent) {
 				if (g_file_equal (parent, fs->private->current_parent) &&
 				    g_hash_table_lookup (fs->private->iri_cache, data->file) == NULL) {
 					/* Item is processed, add an empty element for the processed GFile,
@@ -1177,8 +1177,8 @@ ensure_iri_cache (TrackerMinerFS *fs,
 	g_hash_table_remove_all (fs->private->iri_cache);
 
 	/* Note: parent may be NULL if the file represents
-	 *  the root directory of the file system (applies to
-	 *  .gvfs mounts also!) */
+	 * the root directory of the file system (applies to
+	 * .gvfs mounts also!) */
 	parent = g_file_get_parent (file);
 
 	if (!parent) {
@@ -2233,7 +2233,7 @@ remove_unexisting_file_cb (gpointer key,
 		gchar *uri;
 
 		uri = g_file_get_uri (file);
-		g_debug ("Marking file which no longer exists in FS for removal: %s", uri);
+		g_debug ("  Marking file which no longer exists in FS for removal: %s", uri);
 		g_free (uri);
 
 		g_queue_push_tail (fs->private->items_deleted,
@@ -2263,7 +2263,7 @@ add_to_check_removed_cb (gpointer key,
 	GFile *file = key;
 
 	/* Not adding any data to the value, we just want
-	 *  fast search for key availability */
+	 * fast search for key availability */
 	g_hash_table_insert (fs->private->check_removed,
 	                     g_object_ref (file),
 	                     NULL);
@@ -2285,8 +2285,8 @@ ensure_mtime_cache (TrackerMinerFS *fs,
 	}
 
 	/* Note: parent may be NULL if the file represents
-	 *  the root directory of the file system (applies to
-	 *  .gvfs mounts also!) */
+	 * the root directory of the file system (applies to
+	 * .gvfs mounts also!) */
 	parent = g_file_get_parent (file);
 
 	if (fs->private->current_parent) {
@@ -2311,7 +2311,7 @@ ensure_mtime_cache (TrackerMinerFS *fs,
 	if (parent) {
 		uri = g_file_get_uri (parent);
 
-		g_debug ("Generating mtime cache for folder: %s", uri);
+		g_debug ("Generating mtime cache for folder: '%s'", uri);
 
 		query = g_strdup_printf ("SELECT ?url ?last { ?u nfo:belongsToContainer ?p ; "
 		                                                "nie:url ?url ; "
@@ -2330,12 +2330,12 @@ ensure_mtime_cache (TrackerMinerFS *fs,
 		g_main_loop_run (data.main_loop);
 	}
 
-	if ((!parent || g_hash_table_size (data.values) == 0 ) &&
+	if ((!parent || g_hash_table_size (data.values) == 0) &&
 	    file_is_crawl_directory (fs, file)) {
 		/* File is a crawl directory itself, query its mtime directly */
 		uri = g_file_get_uri (file);
 
-		g_debug ("Folder %s is a crawl directory, generating mtime cache for it", uri);
+		g_debug ("Folder '%s' is a crawl directory, generating mtime cache for it", uri);
 
 		query = g_strdup_printf ("SELECT ?url ?last "
 		                         "WHERE { "
@@ -2375,13 +2375,13 @@ should_change_index_for_file (TrackerMinerFS *fs,
 	gchar              *time_str, *lookup_time;
 
 	/* Make sure mtime cache contains the mtimes of all files in the
-	 *  same directory as the given file
+	 * same directory as the given file
 	 */
 	ensure_mtime_cache (fs, file);
 
 	/* If the file is NOT found in the cache, it means its a new
-	 *  file the store doesn't know about, so just report it to be
-	 *  re-indexed.
+	 * file the store doesn't know about, so just report it to be
+	 * re-indexed.
 	 */
 	lookup_time = g_hash_table_lookup (fs->private->mtime_cache, file);
 	if (!lookup_time) {
@@ -2859,8 +2859,7 @@ crawler_finished_cb (TrackerCrawler *crawler,
 	directory_data_unref (fs->private->current_directory);
 	fs->private->current_directory = NULL;
 
-	/* Check if any file was left after whole
-	 *  crawling */
+	/* Check if any file was left after whole crawling */
 	check_if_files_removed (fs);
 
 	/* Proceed to next thing to process */



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