[tracker/rss-enclosures] Bug 621547 - inconsistent messages on hard-reset



commit 695c8cd2ff267bc8a75805fea331ec697ae624e0
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jun 21 17:24:27 2010 +0200

    Bug 621547 - inconsistent messages on hard-reset
    
    Now all file removal messages have the same format.

 src/libtracker-db/tracker-db-manager.c |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-manager.c b/src/libtracker-db/tracker-db-manager.c
index 964ab36..6bdb777 100644
--- a/src/libtracker-db/tracker-db-manager.c
+++ b/src/libtracker-db/tracker-db-manager.c
@@ -1352,13 +1352,12 @@ tracker_db_manager_set_first_index_done (gboolean done)
 		}
 	} else if (!done && already_exists) {
 		/* If NOT done, remove stamp file */
+		g_message ("  Removing first index file:'%s'", filename);
+
 		if (g_remove (filename)) {
-			g_warning ("  Could not remove file:'%s', %s", 
+			g_warning ("    Could not remove file:'%s', %s",
 			           filename,
 			           g_strerror (errno));
-		} else {
-			g_message ("  First index file:'%s' removed",
-			           filename);
 		}
 	}
 
@@ -1437,13 +1436,12 @@ tracker_db_manager_set_last_crawl_done (gboolean done)
 		g_free (content);
 	} else if (!done && already_exists) {
 		/* If NOT done, remove stamp file */
+		g_message ("  Removing last crawl file:'%s'", filename);
+
 		if (g_remove (filename)) {
-			g_warning ("  Could not remove file:'%s', %s", 
+			g_warning ("    Could not remove file:'%s', %s",
 			           filename,
 			           g_strerror (errno));
-		} else {
-			g_message ("  Last crawl file:'%s' removed",
-			           filename);
 		}
 	}
 



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