[tracker] tracker-extract: Fix invalid SPARQL used when blacklisting files



commit c0913abb60adad5281b78ac5928a7e3a46da620a
Author: Sam Thursfield <sam afuera me uk>
Date:   Thu Jul 14 12:30:23 2016 +0100

    tracker-extract: Fix invalid SPARQL used when blacklisting files
    
    This issue meant that files that triggered crashes never got
    blacklisted, as the invalid SPARQL was ignored by the tracker-store.
    So tracker-extract would spin on invalid files forever in some cases.

 src/tracker-extract/tracker-extract-decorator.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-decorator.c b/src/tracker-extract/tracker-extract-decorator.c
index e011a92..99fd63d 100644
--- a/src/tracker-extract/tracker-extract-decorator.c
+++ b/src/tracker-extract/tracker-extract-decorator.c
@@ -611,9 +611,9 @@ decorator_ignore_file (GFile    *file,
        query = g_strdup_printf ("INSERT { GRAPH <" TRACKER_OWN_GRAPH_URN "> {"
                                 "  ?urn nie:dataSource <" TRACKER_EXTRACT_DATA_SOURCE ">;"
                                 "       nie:dataSource <" TRACKER_EXTRACT_FAILURE_DATA_SOURCE ">."
-                                "} WHERE {"
+                                "} } WHERE {"
                                 "  ?urn nie:url \"%s\""
-                                "}}", uri);
+                                "}", uri);
 
        tracker_sparql_connection_update (conn, query, G_PRIORITY_DEFAULT, NULL, &error);
 


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