[tracker/rss-enclosures] NB187148 - "Not tagged, file is not indexed" message is seen when adding a tag



commit d466227bdf3e8accbc6c701e33f75b66096913ad
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Aug 26 12:41:33 2010 +0200

    NB187148 - "Not tagged, file is not indexed" message is seen when adding a tag
    
    Fix up the function reporting the files tagged.

 src/tracker-utils/tracker-tag.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/tracker-utils/tracker-tag.c b/src/tracker-utils/tracker-tag.c
index f7ece4f..70c80c9 100644
--- a/src/tracker-utils/tracker-tag.c
+++ b/src/tracker-utils/tracker-tag.c
@@ -522,17 +522,15 @@ print_file_report (TrackerSparqlCursor *cursor,
 	for (i = 0; uris[i]; i++) {
 		gboolean found = FALSE;
 
-		g_print ("*** checking uri:'%s' and rewinding cursor\n", uris[i]);
+		tracker_sparql_cursor_rewind (cursor);
 
 		while (tracker_sparql_cursor_next (cursor, NULL, NULL)) {
 			const gchar *str;
 
 			str = tracker_sparql_cursor_get_string (cursor, 1, NULL);
-			g_print ("***   comparing to str:'%s'\n", str);
 
 			if (g_strcmp0 (str, uris[i]) == 0) {
 				found = TRUE;
-				g_print ("***   FOUND FOUND FOUND!\n");
 				break;
 			}
 		}
@@ -540,8 +538,6 @@ print_file_report (TrackerSparqlCursor *cursor,
 		g_print ("  %s: %s\n",
 		         found ? found_msg : not_found_msg,
 		         uris[i]);
-
-		tracker_sparql_cursor_rewind (cursor);
 	}
 }
 



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